Brian Coca
636f88fd31
Merge pull request #9438 from binarytemple/patch-1
...
export ANSIBLE_HOME so it can be used in scripts
2015-08-06 23:59:21 -04:00
Toshio Kuratomi
53ae326603
Port some things in test-module to v2.
...
In particular, fix arg parsing
Fixes #11820
2015-07-31 20:40:07 -07:00
Brian Coca
f5c8055879
removed debug stuff
2015-07-28 15:25:17 -04:00
Brian Coca
a78fdde32c
better handling for weird doc corner cases (abscense of options, bad text objects, etc)
...
also updated extras to get some docfixes on the module side
2015-07-28 14:30:46 -04:00
bryan hunt
7a76fcb159
merged
2015-07-27 11:57:58 +01:00
Sheldon Hearn
c800a1c68a
Preserve OLDPWD
2015-07-23 11:24:30 +02:00
Brian Coca
ae54792a35
Merge pull request #11688 from amenonsen/8935-rebase
...
8935 rebase: add «-o outputfile» and -n(oexec) options to hacking/test-module
2015-07-21 21:31:39 -04:00
Brian Coca
d3fe9b3194
Merge pull request #11084 from echiu64/devel
...
More complex example of using test-module
2015-07-21 21:29:25 -04:00
Abhijit Menon-Sen
8342cc6b61
Fix existing typo, remove trailing space added by PR commit
2015-07-22 06:53:59 +05:30
Will Thames
b05485d4b3
Add options to control output and execution of test-module
...
test-module is useful but sometimes you want to edit the
result before running it to e.g. set a debug point.
Added a noexecute option (i.e. just create the module script, don't
run it) and an output option to choose the filename of the result.
2015-07-22 06:50:37 +05:30
Brian Coca
c40541964b
Merge pull request #11637 from bcoca/moar_docs
...
Moar docs
2015-07-20 22:31:34 -04:00
Brian Coca
740f15cb0d
just remove version_added when to old, not the whole option!
2015-07-20 22:31:20 -04:00
Brian Coca
9de086d16d
removed merges from count
2015-07-18 22:49:50 -04:00
Brian Coca
173f27531c
moar docs
...
added docs for new v2 features
restructures modules bar and core/extras info into their own pages
changed templates to refer to the new pages
added some missing ansible.cfg options
more info on gathering setting
2015-07-17 22:53:11 -04:00
Brian Coca
6ba706f753
minor doc reformatting
...
now version_added < 1.3 does not get shown, up from 1.0
option's version_added is also now filterd against this threshold
module version_added is more prominent
exaples now uses pure rst instead of intermingled with html formatting
aliases now shown in description for options
bad version fields now throw warnings instead of exceptions
ansible-doc errors now show traceback in very very verbose mode, for easier debugging
2015-07-17 10:07:22 -04:00
Brian Coca
811b10d132
docs will not mention versions older than 1.5
2015-07-17 10:07:22 -04:00
Brian Coca
1aeb66148b
actually now does what it says as it was just sorting by name
2015-07-17 10:07:22 -04:00
Gerard Lynch
2f51f3bbc5
updated to use new loader
2015-07-17 11:44:00 +01:00
Brian Coca
95bf78d0e7
Merge pull request #11618 from halberom/test-module
...
hacking/test-module, updated to new location and non-classness of module_common
2015-07-16 19:01:35 -04:00
Gerard Lynch
3c7a502c50
updated to new location and non-classness of module_common
2015-07-16 23:56:18 +01:00
Brian Coca
f146c7680f
Merge pull request #10928 from gimoh/test-module-default-python
...
Use same interpreter for test-module and module it runs
2015-07-16 18:48:00 -04:00
Marc Abramowitz
3b0524e67d
hacking/test-module: Style nit
2015-07-02 18:59:58 +00:00
Marc Abramowitz
5466ff8907
hacking/test-module: Deal with move of parse_kv
2015-07-02 18:58:57 +00:00
Marc Abramowitz
ea6ec3bf2c
Make test-module work in v2
...
- `jsonify` moved from `ansible.utils` to `ansible.parsing.utils.jsonify`
- I don't see `ansible.utils.parse_json` anymore so I used `json.loads`.
2015-07-02 18:16:33 +00:00
Brian Coca
0826106441
minor docs reformat
...
- clearer 'version added' for module options, now it sits under the option name
- made notes a section, so it now appears in toc
- moved requirements and made it a list, more prominent and more readable
2015-06-03 22:19:26 -04:00
James Cammarata
2bad888f28
Merge branch 'v2_final' into devel_switch_v2
...
Conflicts:
lib/ansible/inventory/__init__.py
lib/ansible/modules/core
lib/ansible/utils/__init__.py
lib/ansible/utils/module_docs.py
2015-05-28 15:26:03 -05:00
Edwin Chiu
aef76cc701
More complex example of using test-module
2015-05-28 14:43:25 -04:00
Florian Apolloner
3010190592
Fixing up the hacking module_formatter code for v2
2015-05-23 08:42:17 -05:00
Michael Scherer
85aa984340
Fix error in the column name in the doc
2015-05-15 01:05:38 -04:00
gimoh
5489d172de
Use same interpreter for test-module and module it runs
...
Default python interpreter to the same interpreter the test-module
script is executed with. This is so that the interpreter doesn't have
to be specified twice in the command when using non-default python
(e.g. ``/path/to/python ./hacking/test-module -I python=/path/to/python ...``)
2015-05-06 11:57:25 +01:00
Toshio Kuratomi
4c8d27f7bb
Make module formatting into links to the other module docs
2015-05-05 13:51:22 -07:00
Matt Martz
104b2036f7
egg_info is now written directly to lib
2015-03-27 12:03:20 -05:00
Brian Coca
b6ec502983
added missing element to make google groups link a actual link
2015-03-24 21:09:45 -04:00
Ján Dzurek
cf6155f1c2
rst.j2 template better core module source wording
2015-03-24 20:00:51 +01:00
Brian Coca
c3076b8478
added module returnval documentation to web docs
2015-03-20 16:55:03 -04:00
Brian Coca
2cacac4b23
minor adjustments to formatting
2015-03-20 16:55:03 -04:00
Brian Coca
94909bd4a2
Added return values documentation to modules
2015-03-20 16:55:03 -04:00
Toshio Kuratomi
caf2a96ef9
Merge pdksh fix to v2
2015-03-15 13:22:07 -07:00
Patrik Lundin
731b268cd6
env-setup: Don't use ${.sh.file} if shell is pdksh
...
The default ksh in OpenBSD throws the following error:
===
$ . hacking/env-setup
ksh: hacking/env-setup[23]: ${.sh.file}": bad substitution
[...]
===
The same error can be seen on Linux if pdksh is used.
2015-03-15 10:46:21 +01:00
bmoar
1eaa9d4a08
fix path in Test-module example
2015-03-05 20:30:00 -05:00
Brian Coca
68a06e542d
Merge pull request #9666 from follower/patch-8
...
Correct typo of "actively" (Attempt #2 )
2015-02-26 23:05:28 -05:00
Brian Coca
ee08448b2e
now module_formatter handles new expanded return values from the module_docs (still does not thing with new return value docs)
2015-02-19 18:07:05 -05:00
Alexey Shamrin
b950a38e30
fix links to ansible-devel in documentation pages
2015-02-17 14:30:31 +03:00
Toshio Kuratomi
7c86db3187
Add KSH compat
...
cherry picked from https://github.com/ansible/ansible/pull/6899
2015-02-09 15:37:35 -08:00
ZhiFeng Hu
e63c03d60f
Move update.sh to hacking repository ,see #10081
2015-01-30 14:19:47 +08:00
rpe-github
0a73067153
Use basename -- $0 in case $0 starts with a dash.
...
For example, pdksh $0 contains '-ksh'.
2015-01-25 23:13:54 +01:00
Marco Ippolito
23da2f6415
Redundant file descriptor specifier
2015-01-19 09:03:15 -08:00
Marco Ippolito
4cd5be396d
BUG! Incorrect order of redirection AND incorrect redirection syntax
...
The replaced code only created a text file called `1' in the
current directory, it did *not* redirect output.
2015-01-19 09:03:15 -08:00
Marco Ippolito
bc0f0f838e
More elegant output using here-document syntax
...
POSIX section 2.7.4 defines here-documents.
2015-01-19 09:03:15 -08:00
Marco Ippolito
7eb278e797
Identified two verbosity levels: info, silent
...
Conflicts:
hacking/env-setup
2015-01-19 09:03:15 -08:00