Merge pull request #386 from moreati/doc-cleanups

Documentation cleanups
issue72
dw 6 years ago committed by GitHub
commit f3ee4011cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -290,8 +290,7 @@ command line, or as host and group variables.
File Transfer File Transfer
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Normally `sftp(1) <https://linux.die.net/man/1/sftp>`_ or Normally `sftp(1)`_ or `scp(1)`_ are used to copy files by the
`scp(1) <https://linux.die.net/man/1/scp>`_ are used to copy files by the
`assemble <http://docs.ansible.com/ansible/latest/modules/assemble_module.html>`_, `assemble <http://docs.ansible.com/ansible/latest/modules/assemble_module.html>`_,
`copy <http://docs.ansible.com/ansible/latest/modules/copy_module.html>`_, `copy <http://docs.ansible.com/ansible/latest/modules/copy_module.html>`_,
`patch <http://docs.ansible.com/ansible/latest/modules/patch_module.html>`_, `patch <http://docs.ansible.com/ansible/latest/modules/patch_module.html>`_,
@ -302,6 +301,9 @@ actions, or when uploading modules with pipelining disabled. With Mitogen
copies are implemented natively using the same interpreters, connection tree, copies are implemented natively using the same interpreters, connection tree,
and routed message bus that carries RPCs. and routed message bus that carries RPCs.
.. _scp(1): https://linux.die.net/man/1/scp
.. _sftp(1): https://linux.die.net/man/1/sftp
This permits direct streaming between endpoints regardless of execution This permits direct streaming between endpoints regardless of execution
environment, without necessitating temporary copies in intermediary accounts or environment, without necessitating temporary copies in intermediary accounts or
machines, for example when ``become`` is active, or in the presence of machines, for example when ``become`` is active, or in the presence of
@ -321,8 +323,7 @@ to rename over any existing file. This ensures the file remains consistent at
all times, in the event of a crash, or when overlapping `ansible-playbook` runs all times, in the event of a crash, or when overlapping `ansible-playbook` runs
deploy differing file contents. deploy differing file contents.
The `sftp(1) <https://linux.die.net/man/1/sftp>`_ and `scp(1) The `sftp(1)`_ and `scp(1)`_ tools may cause undetected data corruption
<https://linux.die.net/man/1/sftp>`_ tools may cause undetected data corruption
in the form of truncated files, or files containing intermingled data segments in the form of truncated files, or files containing intermingled data segments
from overlapping runs. As part of normal operation, both tools expose a window from overlapping runs. As part of normal operation, both tools expose a window
where readers may observe inconsistent file contents. where readers may observe inconsistent file contents.
@ -445,8 +446,7 @@ Ansible may:
* Create a directory owned by the SSH user either under ``remote_tmp``, or a * Create a directory owned by the SSH user either under ``remote_tmp``, or a
system-default directory, system-default directory,
* Upload action dependencies such as non-new style modules or rendered * Upload action dependencies such as non-new style modules or rendered
templates to that directory via `sftp(1) <https://linux.die.net/man/1/sftp>`_ templates to that directory via `sftp(1)`_ or `scp(1)`_.
or `scp(1) <https://linux.die.net/man/1/scp>`_.
* Attempt to modify the directory's access control list to grant access to the * Attempt to modify the directory's access control list to grant access to the
target user using `setfacl(1) <https://linux.die.net/man/1/setfacl>`_, target user using `setfacl(1) <https://linux.die.net/man/1/setfacl>`_,
requiring that tool to be installed and a supported filesystem to be in use, requiring that tool to be installed and a supported filesystem to be in use,

@ -458,7 +458,7 @@ Router Class
rich data structures that cannot normally be passed via a rich data structures that cannot normally be passed via a
serialization. serialization.
:param Context via: :param mitogen.core.Context via:
Same as the `via` parameter for :meth:`local`. Same as the `via` parameter for :meth:`local`.
:param bool debug: :param bool debug:
@ -1095,7 +1095,8 @@ Select Class
each, returning the result of calling `msg.unpickle()` on each in turn. each, returning the result of calling `msg.unpickle()` on each in turn.
Results are returned in the order they arrived. Results are returned in the order they arrived.
This is sugar for handling batch :class:`Context.call_async` This is sugar for handling batch
:meth:`Context.call_async <mitogen.parent.Context.call_async>`
invocations: invocations:
.. code-block:: python .. code-block:: python
@ -1262,7 +1263,8 @@ Broker Class
.. method:: keep_alive .. method:: keep_alive
Return :data:`True` if any reader's :attr:`Side.keep_alive` Return :data:`True` if any reader's :attr:`Side.keep_alive`
attribute is :data:`True`, or any :class:`Context` is still attribute is :data:`True`, or any
:class:`Context <mitogen.core.Context>` is still
registered that is not the master. Used to delay shutdown while some registered that is not the master. Used to delay shutdown while some
important work is in progress (e.g. log draining). important work is in progress (e.g. log draining).

@ -208,7 +208,7 @@ started the context, however as shown, this can be overridden.
Calling A Function Calling A Function
------------------ ------------------
.. currentmodule:: mitogen.master .. currentmodule:: mitogen.parent
Now that some contexts exist, it is time to execute code in them. Any regular Now that some contexts exist, it is time to execute code in them. Any regular
function, static method, or class method reachable directly from module scope function, static method, or class method reachable directly from module scope

@ -15,3 +15,8 @@ Table Of Contents
examples examples
internals internals
shame shame
.. toctree::
:hidden:
services

Loading…
Cancel
Save