Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9ca0289d
Commit
9ca0289d
authored
May 11, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup the module formatter to explain the EXAMPLES string as well.
parent
0748e86f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
examples/DOCUMENTATION.yaml
+1
-1
hacking/module_formatter.py
+11
-0
No files found.
examples/DOCUMENTATION.yaml
View file @
9ca0289d
...
...
@@ -26,4 +26,4 @@ options:
default
:
a string or the word
null
choices
:
[
list
,
of
,
choices
]
aliases
:
[
list
,
of
,
aliases
]
version_added
:
0
.X
version_added
:
1
.X
hacking/module_formatter.py
View file @
9ca0289d
...
...
@@ -136,7 +136,10 @@ def return_data(text, options, outputname, module):
def
boilerplate
():
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
""
def
list_modules
(
module_dir
):
categories
=
{}
...
...
@@ -217,6 +220,14 @@ def main():
if
options
.
do_boilerplate
:
boilerplate
()
print
""
print
"EXAMPLES = '''"
print
"# example of doing ___ from a playbook"
print
"your_module: some_arg=1 other_arg=2"
print
"'''"
print
""
sys
.
exit
(
0
)
if
not
options
.
module_dir
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment