Exemplo n.º 1
0
def main(repo_url, ref='master', credentials=None, recurse=False, publish=False, build_options=None):

    clone_dir = app_builder.clone_repository(repo_url, ref=ref, credentials=credentials)

    if recurse:
        for app_dir in app_builder.find_app_directories(clone_dir):
            app_builder.create_app(app_dir, publish=publish, build_options=build_options)
    else:
        app_builder.create_app(clone_dir, publish=publish, build_options=build_options)

    return {}
def main(input_file, recurse=False, publish=False, build_options=None):

    unpack_dir = app_builder.unpack_tarball(input_file)

    if recurse:
        for app_dir in app_builder.find_app_directories(unpack_dir):
            app_builder.create_app(app_dir, publish=publish, build_options=build_options)
    else:
        app_builder.create_app(unpack_dir, publish=publish, build_options=build_options)

    return {}