Skip to content

Commit 2abbd6d

Browse files
committed
Documentation update for v0.6.
1 parent 2aa2192 commit 2abbd6d

File tree

5 files changed

+44
-44
lines changed

5 files changed

+44
-44
lines changed

docs/facts.rst

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,68 +7,68 @@ Facts Index
77
Files
88
-----
99

10-
:code:`directory(name)`
11-
~~~~~~~~~~~~~~~~~~~~~~~
10+
:code:`directory`
11+
~~~~~~~~~~~~~~~~~
1212

1313

14-
:code:`file(name)`
15-
~~~~~~~~~~~~~~~~~~
14+
:code:`file`
15+
~~~~~~~~~~~~
1616

1717

18-
:code:`find_directories(name)`
19-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
:code:`find_directories`
19+
~~~~~~~~~~~~~~~~~~~~~~~~
2020

2121

2222
Returns a list of directories from a start point, recursively using find.
2323

2424

2525

26-
:code:`find_files(name)`
27-
~~~~~~~~~~~~~~~~~~~~~~~~
26+
:code:`find_files`
27+
~~~~~~~~~~~~~~~~~~
2828

2929

3030
Returns a list of files from a start point, recursively using find.
3131

3232

3333

34-
:code:`find_in_file(name, pattern)`
35-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34+
:code:`find_in_file`
35+
~~~~~~~~~~~~~~~~~~~~
3636

3737

3838
Checks for the existence of text in a file using grep. Returns a list of matching
3939
lines if the file exists, and ``None`` if the file does not.
4040

4141

4242

43-
:code:`find_links(name)`
44-
~~~~~~~~~~~~~~~~~~~~~~~~
43+
:code:`find_links`
44+
~~~~~~~~~~~~~~~~~~
4545

4646

4747
Returns a list of links from a start point, recursively using find.
4848

4949

5050

51-
:code:`link(name)`
52-
~~~~~~~~~~~~~~~~~~
51+
:code:`link`
52+
~~~~~~~~~~~~
5353

5454

55-
:code:`sha1_file(name)`
56-
~~~~~~~~~~~~~~~~~~~~~~~
55+
:code:`sha1_file`
56+
~~~~~~~~~~~~~~~~~
5757

5858

5959
Returns a SHA1 hash of a file. Works with both sha1sum and sha1.
6060

6161

6262

63-
:code:`socket(name)`
64-
~~~~~~~~~~~~~~~~~~~~
63+
:code:`socket`
64+
~~~~~~~~~~~~~~
6565

6666

6767
Git
6868
---
6969

70-
:code:`git_branch(name)`
71-
~~~~~~~~~~~~~~~~~~~~~~~~
70+
:code:`git_branch`
71+
~~~~~~~~~~~~~~~~~~
7272

7373

7474
Server
@@ -78,8 +78,8 @@ Server
7878
~~~~~~~~~~~~
7979

8080

81-
:code:`command(command)`
82-
~~~~~~~~~~~~~~~~~~~~~~~~
81+
:code:`command`
82+
~~~~~~~~~~~~~~~
8383

8484

8585
:code:`date`
@@ -168,8 +168,8 @@ Server
168168
Npm
169169
---
170170

171-
:code:`npm_packages(directory)`
172-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171+
:code:`npm_packages`
172+
~~~~~~~~~~~~~~~~~~~~
173173

174174

175175
Returns a dict of installed npm packages globally or in a given directory:
@@ -197,8 +197,8 @@ Yum
197197
198198
199199
200-
:code:`rpm_package(name)`
201-
~~~~~~~~~~~~~~~~~~~~~~~~~
200+
:code:`rpm_package`
201+
~~~~~~~~~~~~~~~~~~~
202202

203203

204204
Returns information on a .rpm file:
@@ -255,8 +255,8 @@ Apt
255255
256256
257257
258-
:code:`deb_package(name)`
259-
~~~~~~~~~~~~~~~~~~~~~~~~~
258+
:code:`deb_package`
259+
~~~~~~~~~~~~~~~~~~~
260260

261261

262262
Returns information on a .deb file.
@@ -314,8 +314,8 @@ Pkg
314314
Iptables
315315
--------
316316

317-
:code:`ip6tables_chains(table)`
318-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
317+
:code:`ip6tables_chains`
318+
~~~~~~~~~~~~~~~~~~~~~~~~
319319

320320

321321
Returns a dict of ip6tables chains & policies:
@@ -327,8 +327,8 @@ Iptables
327327
328328
329329
330-
:code:`ip6tables_rules(table)`
331-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
330+
:code:`ip6tables_rules`
331+
~~~~~~~~~~~~~~~~~~~~~~~
332332

333333

334334
Returns a list of ip6tables rules for a specific table:
@@ -343,8 +343,8 @@ Iptables
343343
344344
345345
346-
:code:`iptables_chains(table)`
347-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
346+
:code:`iptables_chains`
347+
~~~~~~~~~~~~~~~~~~~~~~~
348348

349349

350350
Returns a dict of iptables chains & policies:
@@ -356,8 +356,8 @@ Iptables
356356
357357
358358
359-
:code:`iptables_rules(table)`
360-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
359+
:code:`iptables_rules`
360+
~~~~~~~~~~~~~~~~~~~~~~
361361

362362

363363
Returns a list of iptables rules for a specific table:
@@ -375,8 +375,8 @@ Iptables
375375
Pip
376376
---
377377

378-
:code:`pip_packages(pip)`
379-
~~~~~~~~~~~~~~~~~~~~~~~~~
378+
:code:`pip_packages`
379+
~~~~~~~~~~~~~~~~~~~~
380380

381381

382382
Returns a dict of installed pip packages:

docs/modules/git.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Manage git repositories.
1212
.. code:: python
1313
1414
git.repo(
15-
source, target, branch=master, pull=True, rebase=False, user=None, group=None,
15+
source, target, branch='master', pull=True, rebase=False, user=None, group=None,
1616
use_ssh_user=False, ssh_keyscan=False
1717
)
1818

docs/modules/iptables.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Manage iptables chains.
1111

1212
.. code:: python
1313
14-
iptables.chain(name, present=True, table=filter, policy=None, version=4)
14+
iptables.chain(name, present=True, table='filter', policy=None, version=4)
1515
1616
+ **name**: the name of the chain
1717
+ **present**: whether the chain should exist
@@ -31,11 +31,11 @@ Manage iptables rules.
3131
.. code:: python
3232
3333
iptables.rule(
34-
chain, jump, present=True, table=filter, append=True, version=4, protocol=None,
34+
chain, jump, present=True, table='filter', append=True, version=4, protocol=None,
3535
not_protocol=None, source=None, not_source=None, destination=None, not_destination=None,
3636
in_interface=None, not_in_interface=None, out_interface=None, not_out_interface=None,
3737
to_destination=None, to_source=None, to_ports=None, log_prefix=None,
38-
destination_port=None, source_port=None, extras=
38+
destination_port=None, source_port=None, extras=''
3939
)
4040
4141
+ **chain**: the chain this rule should live in

docs/modules/lxd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Manage LXD containers.
1111

1212
.. code:: python
1313
14-
lxd.container(name, present=True, image=ubuntu:16.04)
14+
lxd.container(name, present=True, image='ubuntu:16.04')
1515
1616
Note: does not check if an existing container is based on the specified
1717
image.

docs/modules/pip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Manage pip packages.
1212
.. code:: python
1313
1414
pip.packages(
15-
packages=None, present=True, latest=False, requirements=None, pip=pip, virtualenv=None,
15+
packages=None, present=True, latest=False, requirements=None, pip='pip', virtualenv=None,
1616
virtualenv_kwargs=None
1717
)
1818

0 commit comments

Comments
 (0)