Пример #1
0
 def run(self, configuration, cli_arguments):
     application = cli_arguments['<app>']
     format = cli_arguments['--format']
     reader = DefaultReader(configuration, format=format)
     daemon = cli_arguments['--daemon']
     activities = cli_arguments['--activities']
     reader.status(application, daemon=daemon, activities=activities)
Пример #2
0
 def run(self, configuration, cli_arguments):
     application = cli_arguments['<app>']
     format = cli_arguments['--format']
     reader = DefaultReader(configuration, format=format)
     daemon = cli_arguments['--daemon']
     activities = cli_arguments['--activities']
     reader.status(application, daemon=daemon, activities=activities)
Пример #3
0
    def run(self, configuration, cli_arguments):
        if cli_arguments['<app>']:
            applications = [cli_arguments['<app>']]
        else:
            applications = configuration.applications.keys()

        reader = DefaultReader(configuration)
        for application in applications:
            print "\nApplication: %s" % application
            print "============="
            reader.list_autoscale_configurations(application)
Пример #4
0
    def run(self, configuration, cli_arguments):
        if cli_arguments['<app>']:
            applications = [cli_arguments['<app>']]
        else:
            applications = configuration.applications.keys()

        reader = DefaultReader(configuration)
        for application in applications:
            print "\nApplication: %s" % application
            print "============="
            reader.list_autoscale_configurations(application)