PHP Class StackFormation\Profile\Manager

Datei anzeigen Open project: aoepeople/stackformation Class Usage Examples

Protected Properties

Property Type Description
$clients
$credentialProvider
$output
$sdk
$stackFactories

Public Methods

Method Description
__construct ( YamlCredentialProvider $credentialProvider = null, Symfony\Component\Console\Output\OutputInterface $output = null )
getCfnClient ( $profile = null, array $args = [] ) : Aws\CloudFormation\CloudFormationClient
getClient ( string $client, string $profile = null, array $args = [] ) : Aws\AwsClientInterface
getEnvVarsFromProfile ( $profile )
getStackFactory ( $profile = null ) : StackFactory "StackFactory" Factory :)
listAllProfiles ( )
loadProfileToEnv ( $profile )
writeProfileToDotEnv ( $profile, $file = '.env' )

Protected Methods

Method Description
getSdk ( )
printDebug ( $client, $profile )

Private Methods

Method Description
getHttpHandler ( ) : Aws\Handler\GuzzleV6\GuzzleHandler

Method Details

__construct() public method

public __construct ( YamlCredentialProvider $credentialProvider = null, Symfony\Component\Console\Output\OutputInterface $output = null )
$credentialProvider YamlCredentialProvider
$output Symfony\Component\Console\Output\OutputInterface

getCfnClient() public method

public getCfnClient ( $profile = null, array $args = [] ) : Aws\CloudFormation\CloudFormationClient
$args array
return Aws\CloudFormation\CloudFormationClient

getClient() public method

public getClient ( string $client, string $profile = null, array $args = [] ) : Aws\AwsClientInterface
$client string
$profile string
$args array
return Aws\AwsClientInterface

getEnvVarsFromProfile() public method

public getEnvVarsFromProfile ( $profile )

getSdk() protected method

protected getSdk ( )

getStackFactory() public method

"StackFactory" Factory :)
public getStackFactory ( $profile = null ) : StackFactory
$profile
return StackFormation\StackFactory

listAllProfiles() public method

public listAllProfiles ( )

loadProfileToEnv() public method

public loadProfileToEnv ( $profile )

printDebug() protected method

protected printDebug ( $client, $profile )

writeProfileToDotEnv() public method

public writeProfileToDotEnv ( $profile, $file = '.env' )

Property Details

$clients protected_oe property

protected $clients

$credentialProvider protected_oe property

protected $credentialProvider

$output protected_oe property

protected $output

$sdk protected_oe property

protected $sdk

$stackFactories protected_oe property

protected $stackFactories