forked from ungleich-public/cdist
Add cdist-new-type helper scrpt
This commit is contained in:
parent
21a16f5584
commit
34eec3c214
8 changed files with 242 additions and 3 deletions
|
|
@ -47,7 +47,8 @@ you write to use the -e flag:
|
|||
Using debug dump helper script
|
||||
------------------------------
|
||||
Since cdist stores data to local cache that can be used for debugging there
|
||||
is a helper script that dumps data from local cache.
|
||||
is a helper script that dumps data from local cache,
|
||||
`cdist-dump <man1/cdist-dump.html>`_.
|
||||
|
||||
For more info see:
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,9 @@ they are written in shell so they are executed using '/bin/sh -e' or 'CDIST_LOCA
|
|||
|
||||
For executable shell code it is suggested that shebang is '#!/bin/sh -e'.
|
||||
|
||||
For creating type skeleton you can use helper script
|
||||
`cdist-new-type <man1/cdist-new-type.html>`_.
|
||||
|
||||
|
||||
Defining parameters
|
||||
-------------------
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ is being used in small up to enterprise grade environments.
|
|||
cdist-real-world
|
||||
man1/cdist
|
||||
man1/cdist-dump
|
||||
man1/cdist-new-type
|
||||
cdist-bootstrap
|
||||
cdist-configuration
|
||||
cdist-manifest
|
||||
|
|
|
|||
74
docs/src/man1/cdist-new-type.rst
Normal file
74
docs/src/man1/cdist-new-type.rst
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
cdist-new-type(1)
|
||||
=================
|
||||
|
||||
NAME
|
||||
----
|
||||
cdist-new-type - Create new type skeleton
|
||||
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
cdist-new-type TYPE-NAME AUTHOR-NAME AUTHOR-EMAIL [TYPE-BASE-PATH]
|
||||
|
||||
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
cdist-new-type is a helper script that creates new type skeleton.
|
||||
It is then up to the type author to finish the type.
|
||||
|
||||
It creates skeletons for the following files:
|
||||
|
||||
* man.rst
|
||||
* manifest
|
||||
* gencode-remote.
|
||||
|
||||
Upon creation it prints the path to the newly created type directory.
|
||||
|
||||
|
||||
ARGUMENTS
|
||||
---------
|
||||
**TYPE-NAME**
|
||||
Name of the new type.
|
||||
|
||||
**AUTHOR-NAME**
|
||||
Type author's full name.
|
||||
|
||||
**AUTHOR-NAME**
|
||||
Type author's email.
|
||||
|
||||
**TYPE-BASE-PATH**
|
||||
Path to the base directory of the type. If not set it defaults
|
||||
to '$PWD/type'.
|
||||
|
||||
|
||||
EXAMPLES
|
||||
--------
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
# Create new type __foo in ~/.cdist directory.
|
||||
$ cd ~/.cdist
|
||||
$ cdist-new-type '__foo' 'Foo Bar' 'foo.bar at foobar.org'
|
||||
/home/foo/.cdist/type/__foo
|
||||
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
:strong:`cdist`\ (1)
|
||||
|
||||
|
||||
AUTHORS
|
||||
-------
|
||||
|
||||
| Steven Armstrong <steven-cdist--@--armstrong.cc>
|
||||
| Darko Poljak <darko.poljak--@--ungleich.ch>
|
||||
|
||||
|
||||
COPYING
|
||||
-------
|
||||
Copyright \(C) 2019 Steven Armstrong, Darko Poljak. Free use of this software is
|
||||
granted under the terms of the GNU General Public License v3 or later (GPLv3+).
|
||||
Loading…
Add table
Add a link
Reference in a new issue