예제 #1
0
def certs(certification, data_dir, output_dir):
    """ Create certification yamls """
    utils.create_dir(output_dir)
    certs_dir = os.path.join(data_dir, 'certifications')
    if verify_certification_path(certification, certs_dir):
        output_path = yamls_to_certification.create_yaml_certifications(
            certification, data_dir, output_dir
        )
        click.echo('Certification created in: `{0}`'.format(output_path))
예제 #2
0
def certs(data_dir, output_dir):
    """ Create certification yamls """
    output_path = yamls_to_certification.create_yaml_certifications(
        data_dir, output_dir
    )
    click.echo('Certifications Created in: `{0}`'.format(output_path))
예제 #3
0
def build_certifications(data_dir, output_dir):
    """ Interface for the yamls_to_certification renderer, which creates yaml
    certifications """
    return yamls_to_certification.create_yaml_certifications(
        data_dir=data_dir, output_dir=output_dir
    )