Example #1
0
def inventory(certification, exports_dir, output_dir):
    """ Creates an inventory for a specific certification  """
    certs_dir = os.path.join(exports_dir, 'certifications')
    utils.create_dir(output_dir)
    cert_path = verify_certification_path(certification, certs_dir)
    if cert_path:
        output_path = inventory_builder.create_inventory(cert_path, output_dir)
        click.echo('Inventory yaml created at `{0}`'.format(output_path))
Example #2
0
def inventory(certification, certs_dir, output_dir):
    """ Creates an inventory for a specific certification  """
    output_path, error = inventory_builder.create_inventory(
        certification, certs_dir, output_dir
    )
    if output_path:
        click.echo('Inventory yaml created at `{0}`'.format(output_path))
    else:
        click.echo(error)