'run command'

def run(self):

    generate_files = find_files('roles', ['inventory', 'test', 'playbooks', 'utils'], None, 'generate.py$')
    if (len(generate_files) < 1):
        print('Did    not    find    any    code    generation.        Please    verify    module    code    generation.')
        raise SystemExit(1)
    errors = False
    for gen in generate_files:
        print('Checking    generated    module    code:    {0}'.format(gen))
        try:
            sys.path.insert(0, os.path.dirname(gen))
            import generate
            reload_module(generate)
            generate.verify()
        except generate.GenerateAnsibleException as gae:
            print(gae.args)
            errors = True
    if errors:
        print('Found    errors    while    generating    module    code.')
        raise SystemExit(1)
    print('\nAll    generate    scripts    passed.\n')
