示例#1
0
文件: main.py 项目: CapeSepias/grid
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile_name', 'media-service')
    properties = config._sections['properties']

    generate_files(aws_profile_name, OUTPUT_DIR, properties)
示例#2
0
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile_name',
                                       'media-service')
    properties = config._sections['properties']

    generate_files(aws_profile_name, OUTPUT_DIR, properties)
示例#3
0
文件: main.py 项目: won21kr/grid
def main():
    config = ConfigParser()
    config.read('settings/settings.ini')

    aws_profile_name = _default_option(config, 'aws', 'profile-name', 'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name')

    output_dir = _default_option(config, 'output', 'directory', 'output')

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, output_dir, properties)
示例#4
0
文件: main.py 项目: strogo/grid
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile-name', 'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name', None)

    if not cf_stack:
        raise Exception('No stack found in {}'.format(CONFIG_FILE))

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, OUTPUT_DIR, properties)
示例#5
0
文件: main.py 项目: won21kr/grid
def main():
    config = ConfigParser()
    config.read('settings/settings.ini')

    aws_profile_name = _default_option(config, 'aws', 'profile-name',
                                       'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name')

    output_dir = _default_option(config, 'output', 'directory', 'output')

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, output_dir,
                   properties)
示例#6
0
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile-name',
                                       'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name', None)

    if not cf_stack:
        raise Exception('No stack found in {}'.format(CONFIG_FILE))

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, OUTPUT_DIR,
                   properties)