Toshio Kuratomi
6a6060ac55
Teach env-setup how to create egg-info for ansible so that pkg_resources works
11 years ago
Felix Kaiser
3b06ab84e3
Make test-module interpret --args='{...' as yaml
11 years ago
Max Riveiro
9f7342d46d
Add tesing deps installation into hacking/README
...
Signed-off-by: Max Riveiro <kavu13@gmail.com>
11 years ago
Cristian Ciupitu
0749112286
Micro-optimization: replace s.find(x)!=-1 with x in s
...
timeit shows a speedup of ~3x on Python 2.7.5 x86_64.
It also makes the code a bit shorter.
11 years ago
Lukáš Lalinský
95d102f5e4
Remove obsolete module development docs
11 years ago
willthames
e2d04f7e96
Allow hacking/env-setup module path to use config file library path
...
hacking/env-setup now adds the configured library path in ANSIBLE_CONFIG
to the ANSIBLE_LIBRARY environment variable in addition to the previous
default of ANSIBLE_HOME/library.
This replaces #5950 .
11 years ago
Matt Martz
dbed05caec
Support for -a to accept a file with test-module
...
If the CLI value for -a starts with an @, treat it like a file, and dump the contents into complex_args
This supports yaml or json.
11 years ago
jctanner
7fa0d8bdd3
Merge pull request #5461 from sivel/test-module-interpreter
...
Add -I/--interpreter argument to test-module
11 years ago
Michael DeHaan
3b8fd62ff9
More site rename things.
11 years ago
Michael DeHaan
c4a8a6d3c2
Add an "all" category so all modules show up uncategorized there.
11 years ago
Michael DeHaan
2f811c40d7
Basic docsite formatting fixups
11 years ago
Matt Martz
e50c2bccb8
Add -I/--interpreter argument to test-module
11 years ago
Mikhail Sobolev
84948292f3
include short_description in the module page's title
11 years ago
Michael DeHaan
83d298accc
Add note about how to submit doc changes to generated module docs, limit TOC depth for module category list.
11 years ago
Mikhail Sobolev
fce90e0370
use rst formatting for sphinx part
11 years ago
Mikhail Sobolev
1713013dba
provide sections and local TOC for module documentation
11 years ago
Mikhail Sobolev
7965d331f3
do not produce too deep toc for category lists
11 years ago
Mikhail Sobolev
af1f8db51d
remove trailing whitespaces
11 years ago
Michael DeHaan
a5e8e10bb0
Removed unused things.
11 years ago
Michael DeHaan
f4aa6c53bd
Format module requirements as notes in Sphinx
11 years ago
Michael DeHaan
eb0509fce7
Update the styling for the module pages slightly.
11 years ago
Michael DeHaan
35ec9f81ae
Further modifications to the module formatter to adjust to the new theme, and some misc docs text corrections.
11 years ago
Michael DeHaan
fe2d00d9d3
WIP on refactoring the module formatter code that we use to build the doc site with.
11 years ago
Michael DeHaan
31d0060de8
Standardized on yml suffix, so fix this example content filename.
11 years ago
Michael DeHaan
10009b0d3f
Starting to refactor module formatter script.
...
Rename "jpfunc" to something more explanatory
11 years ago
Jens Rantil
2096c669d9
`env-setup` fix for zsh <= 4.3.10
...
This fixes issue #5026 . It used to work. The regression was
introduced in 2b3381de7c
.
11 years ago
Michael DeHaan
40429ee64e
Code to limit display of version_added attributions in modules for modules that are too old to call out this information.
...
This does not generically apply to new arguments added to existing modules, just the version_added attribute on the top level modules.
11 years ago
Michael DeHaan
51e6f411f2
Docs: Fix the module formatter code that is intended to remove the 'historical' variable from showing up in version_added information (RST)
11 years ago
phy1729
2b3381de7c
Add zsh support for working dir independant sourcing
11 years ago
Michael DeHaan
f7c3975f21
Add version_added to all modules missing version_added information, the docs formatter will now
...
raise errors when omitted, updated changelog with new modules.
11 years ago
jctanner
b6c1574f5c
Merge pull request #4765 from mvo5/bugfix/fix-man-template
...
Fixes in the man template
11 years ago
Michael Vogt
b8e641136a
make comment lines in troff start with .\" and add a .SH EXAMPLES to the PLAINEXAMPLES section
11 years ago
Michael DeHaan
d34a26e307
Undo an inadvertant revert from template changes so we still allow pythonic imports in module land.
11 years ago
Alan Fairless
af40b19a2d
Fix format string typo
11 years ago
James Tanner
d154bf8781
Revert templating enhancements from 73dbab70
e6c28658
d409352c
9858b1f2
4587528b
9b1fe455
214b0b05
8d3db803
7f9504d1
5031104c
35cb9dc2
2bd8cb57
1e85c754
11 years ago
Michael DeHaan
9858b1f2f3
Enable imports to work on a snippet based system, allowing for instance a library of common EC2 functions
...
to be reused between modules. See library/system/service and library/system/ping for initial examples. Can
work the old way to just import 'basic', or can import the new way to import multiple pieces of code from
module_utils/.
11 years ago
Jharrod LaFon
996f87d898
Fixed usage comment to fish syntax for sourcing a file
11 years ago
Jharrod LaFon
d0fe447fd1
Fixed incorrectly set PYTHONPATH
11 years ago
Jharrod LaFon
dbfcd78790
Added an env-setup file for Fish
11 years ago
Michael DeHaan
5f18a53530
Fixup docs formatting.
11 years ago
Michael DeHaan
303a8ff563
Fix module path in readme file.
12 years ago
Michael DeHaan
fa9635478b
Fixing your YAML Seth :)
12 years ago
Michael DeHaan
955611bda8
Fixes #3294
12 years ago
Michael DeHaan
8b592c9d4b
Add some whitespace to script
12 years ago
martin f. krafft
3839dcd56c
Remove extra $ character
...
Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft
bbbc214ffb
Remove bashisms, replace with POSIX constructs
...
This replaces double conditional brackets with single ones and gets ris
of bashisms, so that the tool should be sourcable from any POSIX shell.
Constructs like [ $foo = "$bar"* ] yield filesystem-globbing behaviour
according to POSIX. A compliant way is to use case statements.
Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft
9f4988dbfd
Quote variables in shell script
...
In case paths contain spaces, it's better to consistently quote
variables, and to use $() instead of `` for external invocations.
Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft
4b9f8fc294
Replace external command with shell construct
...
dirname/basename do not need an external process, shell variable
expansion can be made to do the same a bit faster.
Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft
013cd38929
Remove shebang line
...
The env-setup script is not intended to be run directly, so it does not
need a shebang line, which might even create the wrong expectations.
Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
Michael DeHaan
3f8aa8aec5
Fix up some module docs formatting errors.
12 years ago