From d708ea6792216b2103fa4fdc1aa810de637fdc44 Mon Sep 17 00:00:00 2001 From: adobdin Date: Fri, 15 Apr 2016 05:41:34 +0000 Subject: [PATCH] fix: docs --- doc/source/.specification.rst.swp | Bin 0 -> 12288 bytes doc/source/conf.py | 4 ++-- doc/source/configuration.rst | 13 ++++++++++++- doc/source/index.rst | 4 ++-- doc/source/specification.rst | 5 ++++- doc/source/usage.rst | 19 ++++++------------- setup.py | 2 +- sphinx-build.sh | 1 + 8 files changed, 28 insertions(+), 20 deletions(-) create mode 100644 doc/source/.specification.rst.swp diff --git a/doc/source/.specification.rst.swp b/doc/source/.specification.rst.swp new file mode 100644 index 0000000000000000000000000000000000000000..77d3dee05943022b15f685cdd6ff20aa34677f0e GIT binary patch literal 12288 zcmeI2&5j#I5P&=&)XGOP$J=f~j|PvR$_?{kk^P)RBhJU>$pG zY-<~xEcq(L^m4cIRtN}zs|XCKEl;ki5AS?%lvQuN_b$Bs*4I~A$$KFn1cZPP5CTF# z2nYcoAO!wL1X6!ZJ>z;_JJiHK0gUU~zxKneY(hW?2mv7=1cZPP5CTF#2nYcoAOwWK zD@Z^aPWla{zGKP%|3Cl!|JR#J{mJqN%kL~dvmCR$&hpC*r5>}KURUZJmS5TS3CoWx z-?NOqUO^U;vJemgLO=)z0U;m+gn$qb0{?-)7rNO(B3SU@-o?YEH+TV`)Hd&*J*<=} zAX0~*L$k5x82JKWh1Rd338)hqD4|%R$Dm!6bf{L3?i8TCfx^)`mPJvpkNac>r^5nz ziqWnd=8%&E&@dh*)((2kMX&kYMki>1`gR!*KvqgvFk4fzAQNx zqqAQ=v)r*Y4XGb^Yhl(7=)jXfa5knHo7_8?!|gUu2UXp4CW2wtO`@=We=IU$uftg2 zY7c=N*M8ezViit64~aMopMQ3a^;sir5aPab)^B44XEZ)I zk;&tTqsVF76rsq~6?14UpW_Df4GliAca!lxUXR`>)2Vmng8?Bv^IqiAO5{LBUOAejF z&?Fv9x36+jd&m9B!=hWvIh<{1a0Yf1wp<*SeTdzXbF|AdjQ-pP@*R5SFpk|W^XCwZ zYyo$xi#dFhKR(VM$JNmsPO2kz{ndtZOGGZ`xZ*~RP2Hr_$3$`. diff --git a/doc/source/index.rst b/doc/source/index.rst index 70b92c3..bf66522 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -11,6 +11,7 @@ Contents: .. toctree:: :maxdepth: 2 + specification configuration usage @@ -21,5 +22,4 @@ Indices and tables .. * :ref:`genindex` * :ref:`modindex` -* :ref:`search` - + * :ref:`search` diff --git a/doc/source/specification.rst b/doc/source/specification.rst index 9b0cffc..19bcaa3 100644 --- a/doc/source/specification.rst +++ b/doc/source/specification.rst @@ -10,4 +10,7 @@ Specification * Commands (from ./cmds directory) are separated by roles (detected automatically) by the symlinks. So the command list may depend on release, roles and OS, there also can be commands that run everywhere. Also there are commands that are executed *only on one node* by its *role*, first encountered. * Human-readable format output of 'fuel node list' * Modular: possible to create a special package that contains only some required commands. -* some archives are being created - *general* and *logs-** +* some archives are being created - *general.tar.bz2* and *logs-*** + +Back to :doc:`Index `. + diff --git a/doc/source/usage.rst b/doc/source/usage.rst index 725fc03..881eb32 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -2,27 +2,20 @@ Usage ===== -The easiest way to launch timmy would be running the ``launch.sh`` script. +The easiest way to launch timmy would be running the ``timmy.py`` script. However, you need to :doc:`configure ` it first. -Basically, the ``launch.sh`` is a simple wrapper that launches ``cmds.py`` and ``getlogs.py``. -The first script launches commands on remote hosts and records outputs, and the second one gathers some logs. +Basically, the ``timmy.py`` is a simple wrapper that launches ``cli.py``. -The ``cmds.py`` script accepts the following parameters: +The script accepts the following parameters: * ``--config`` the configuration file location, default is *config.yaml* -* ``-o``, ``--dest-file`` the location for output archives, default is */tmp* +* ``-o``, ``--dest-file`` the location for output archives, default is */tmp/archives/general.tar.bz2* * ``-e``, ``--extended`` execute commands once by roles * ``-c``, ``--cluster`` ability to provide the cluster ID * ``-d``, ``--debug`` debugging mode, return more debugging info * ``-v``, ``--verbose`` verbose mode - -The ``getlogs.py`` script accepts the following parameters: - -* ``-a``, ``--dest-file`` the location for output archives, default is */tmp* -* ``-l``, ``--log-dir`` directory for storing logs, default is *./logs/* -* ``-c``, ``--cluster`` ability to provide the cluster ID -* ``-d``, ``--debug`` debugging mode, return more debugging info -* ``-v``, ``--verbose`` verbose mode +* ``--only-logs`` collect only logs from nodes (without commands) +* ``-l``, ``--logs`` collect log files from nodes Back to :doc:`Index `. diff --git a/setup.py b/setup.py index 278d95c..9adcb58 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup(name='timmy', author_email = 'dobdin@gmail.com', license = 'Apache2', url = 'https://github.com/adobdin/timmy', - # long_description=read('README'), + long_description=read('README.md'), packages = ["timmy"], data_files = rqfiles, include_package_data = True, diff --git a/sphinx-build.sh b/sphinx-build.sh index 28438c4..46073ad 100755 --- a/sphinx-build.sh +++ b/sphinx-build.sh @@ -18,3 +18,4 @@ sphinx-build -b html doc/source/ doc/build/ rm -f "./*.pyc" +rm -f "./timmy/*.pyc"