Exemple #1
0
    'Terminal': 1,
    'ConfigFile': 2,
    'OsEnvironment': 3,
    'OperationOutput': 4,
    'Default': 10,
})

#----------------------------------------------
# Command
#----------------------------------------------
CommandType = OrderedEnum([
    'INIT',
    'BRANCH',
    'START',
    'STATUS',
    'UPDATE',
    'STOP',
    'DELETE',
    'LOGS',
    'EVENTS',
    'PUSH',
])

SubCommandType = OrderedEnum([
    # LOGS command
    'TAIL',
    'OPEN'
])

CommandCombination = {
    CommandType.LOGS: {
        Key.Default: SubCommandType.TAIL,
Exemple #2
0
# Command line arguments
#----------------------------------------------


class EBSCliAttr(object):
    Name = 'AWS Elastic Beanstalk Command Line Interface'
    Version = 'AWS Elastic Beanstalk Command Line Interface v2.2'
    Usage = '%(prog)s {COMMAND} [options]'
    ErrorMsg = 'Error: {0}\n{1}Try {2} --help for more information.\n'
    InvalidCommand = 'Invalid command: {0}'


CommandType = OrderedEnum([
    'INIT',
    'START',
    'STATUS',
    'STOP',
    'DELETE',
    'UPDATE',
])
""" Define command line argument switch """
CLISwitch = {
    ParameterName.Command: 'command',
    ParameterName.AwsCredentialFile: 'aws-credential-file',
    ParameterName.AwsAccessKeyId: 'access-key-id',
    ParameterName.AwsSecretAccessKey: 'secret-key',
    ParameterName.Region: 'region',
    ParameterName.ServiceEndpoint: 'url',
    ParameterName.SolutionStack: 'solution-stack',
    ParameterName.ApplicationName: 'application-name',
    ParameterName.ApplicationVersionName: 'version-label',
    ParameterName.EnvironmentName: 'environment-name',
Exemple #3
0
    N = u'N'
    No = u'No'
    TRUE = u'True'
    FALSE = u'False'

    RdsSnapshotListNumber = 5


#----------------------------------------------
# Services
#----------------------------------------------
ServiceRegion = OrderedEnum([
    u'UsEast1',
    u'UsWest1',
    u'UsWest2',
    u'EuWest1',
    u'ApNortheast1',
    u'ApSoutheast1',
    u'SaEast1',
])

AvailableServiceRegion = [
    ServiceRegion.UsEast1,
    ServiceRegion.UsWest2,
    ServiceRegion.UsWest1,
    ServiceRegion.EuWest1,
    ServiceRegion.ApSoutheast1,
    ServiceRegion.ApNortheast1,
]

ServiceRegionName = {
Exemple #4
0

class EBSCliAttr(object):
    Name = u'AWS Elastic Beanstalk Command Line Interface'
    Version = u'AWS Elastic Beanstalk Command Line Interface ' + misc.to_unicode(
        EbCliVersion)
    Usage = u'%(prog)s {COMMAND} [options]'
    ErrorMsg = u'Error: {0}\n{1}Try {2} --help for more information.\n'
    InvalidCommand = u'Invalid command: {0}'


CommandType = OrderedEnum([
    u'INIT',
    u'BRANCH',
    u'START',
    u'STATUS',
    u'UPDATE',
    u'STOP',
    u'DELETE',
])
""" Define command line argument switch """
CLISwitch = {
    ParameterName.Command: u'command',
    ParameterName.AwsCredentialFile: u'aws-credential-file',
    ParameterName.AwsAccessKeyId: u'access-key-id',
    ParameterName.AwsSecretAccessKey: u'secret-key',
    ParameterName.Region: u'region',
    ParameterName.ServiceEndpoint: u'url',
    ParameterName.SolutionStack: u'solution-stack',
    ParameterName.ApplicationName: u'application-name',
    ParameterName.ApplicationVersionName: u'version-label',