示例#1
0
def teardown():
    configure_logging()
    teardown_django_frontend()

    teardown_rds()
    teardown_iam_user()

    teardown_celery_backend()
    teardown_sqs()
def deploy():
    configure_logging()
    verify_config()
    deploy_django_frontend()
    
    rds_inst = spawn_rds()
    user_key, user_secret = spawn_iam_user()
    
    deploy_celery_backend(rds_inst.endpoint[0], user_key, user_secret)
示例#3
0
def deploy():
    configure_logging()
    verify_config()
    deploy_django_frontend()

    rds_inst = spawn_rds()
    user_key, user_secret = spawn_iam_user()

    deploy_celery_backend(rds_inst.endpoint[0], user_key, user_secret)
def teardown():
    configure_logging()
    teardown_django_frontend()
    
    teardown_rds()
    teardown_iam_user()
    
    teardown_celery_backend()
    teardown_sqs()
    
def cmd_handler():
    '''
    This is the "main" which is called by "nimbostratus" file.
    '''
    args = parse_args()

    configure_logging(args.verbosity)

    module_name = SUBCOMMANDS[args.subparser_name]
    _temp = __import__(module_name, globals(), locals(), ['cmd_handler'], -1)
    _temp.cmd_handler(args)