def main():
    program_options = docopt(__doc__)
    config = setup(__doc__)

    directory = program_options['<directory>']
    orgs = program_options['--orgs']
    files = program_options['--include']
    bucket = program_options['--output-bucket']
    prefix = program_options['--output-prefix']

    export_properties(config, directory, files, orgs, prefix)
示例#2
0
def main():
    general_config = setup(__doc__)

    courses_with_env = get_courses_with_env(general_config)

    for course in general_config['values']['course']:
        config = get_config_for_course(general_config, course)

        with make_course_directory(config, course) as temp_directory:
            results = export_course_data(config, temp_directory, courses_with_env[course])
            upload_files(config, temp_directory)
示例#3
0
def main(argv=None):
    general_config = setup(__doc__, argv=argv)
    for organization in general_config['organizations']:
        config = get_config_for_org(general_config, organization)

        with make_org_directory(config, organization) as destination:
            results = export_organization_data(config, destination)
            # TODO: Add support to the command to receive whether encrypt the files or not.
            # encrypt_files(config, results)
            archive = archive_directory(config, destination)
            upload_data(config, archive)
def main(argv=None):
    general_config = setup(__doc__, argv=argv)
    for organization in general_config['organizations']:

        config = get_config_for_org(general_config, organization)

        with make_org_directory(config, organization) as destination:
            results = export_organization_data(config, destination)
            encrypt_files(config, results)
            archive = archive_directory(config, destination)
            upload_data(config, archive)
示例#5
0
def main():
    general_config = setup(__doc__)

    return check_export(general_config)