mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Removed unused things.
This commit is contained in:
parent
f4aa6c53bd
commit
a5e8e10bb0
2 changed files with 0 additions and 97 deletions
|
@ -114,24 +114,6 @@ def write_data(text, options, outputname, module):
|
|||
|
||||
#####################################################################################
|
||||
|
||||
def boilerplate():
|
||||
''' prints the boilerplate for module docs '''
|
||||
|
||||
if not os.path.exists(EXAMPLE_YAML):
|
||||
print >>sys.stderr, "Missing example boiler plate: %s" % EXAMPLE_YAML
|
||||
print "DOCUMENTATION = '''"
|
||||
print file(EXAMPLE_YAML).read()
|
||||
print "'''"
|
||||
print ""
|
||||
print ""
|
||||
print "EXAMPLES = '''"
|
||||
print "# example of doing ___ from a playbook"
|
||||
print "your_module: some_arg=1 other_arg=2"
|
||||
print "'''"
|
||||
print ""
|
||||
|
||||
#####################################################################################
|
||||
|
||||
def list_modules(module_dir):
|
||||
''' returns a hash of categories, each category being a hash of module names to file paths '''
|
||||
|
||||
|
@ -167,7 +149,6 @@ def generate_parser():
|
|||
p.add_option("-v", "--verbose", action='store_true', default=False, help="Verbose")
|
||||
p.add_option("-o", "--output-dir", action="store", dest="output_dir", default=None, help="Output directory for module files")
|
||||
p.add_option("-I", "--includes-file", action="store", dest="includes_file", default=None, help="Create a file containing list of processed modules")
|
||||
p.add_option("-G", "--generate", action="store_true", dest="do_boilerplate", default=False, help="generate boilerplate docs to stdout")
|
||||
p.add_option('-V', action='version', help='Show version number and exit')
|
||||
return p
|
||||
|
||||
|
@ -294,10 +275,6 @@ def process_category(category, categories, options, env, template, outputname):
|
|||
def validate_options(options):
|
||||
''' validate option parser options '''
|
||||
|
||||
if options.do_boilerplate:
|
||||
boilerplate()
|
||||
sys.exit(0)
|
||||
|
||||
if not options.module_dir:
|
||||
print >>sys.stderr, "--module-dir is required"
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue