From 2f88521d41d4288cdf767ba996c4f7365a5be21a Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 8 Mar 2011 21:43:36 +0100 Subject: [PATCH 1/6] ads --- asd | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 asd diff --git a/asd b/asd new file mode 100644 index 00000000..e69de29b From 4f8932c1427b3491f05dd289fd08e448d67e3bac Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 15 Mar 2011 19:07:58 +0100 Subject: [PATCH 2/6] Documented parameters for __addifnosuchline --- .../to_check/cdist-type-addifnosuchline.text | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/man/to_check/cdist-type-addifnosuchline.text b/doc/man/to_check/cdist-type-addifnosuchline.text index 09618dc3..12690000 100644 --- a/doc/man/to_check/cdist-type-addifnosuchline.text +++ b/doc/man/to_check/cdist-type-addifnosuchline.text @@ -19,6 +19,31 @@ cdist-type-addifnosuchline can be used to check a file for existence of a specific line and adding that if not found +REQUIRED PARAMETERS +------------------- +line:: + Specifies the content which shall be added if not existing. + + +OPTIONAL PARAMETERS +------------------- +file:: + If supplied, use this as the destination file. Otherwise the + object_id is used. + +EXAMPLES +-------- + +-------------------------------------------------------------------------------- +# Creates or appends the line specifiend in "foo" to the file "bar" + +__addifnosuchline foo --file bar --line foo + +# Adds the line "foo2" to the file "bar" +__addifnosuchline foo --file bar --line foo2 + +-------------------------------------------------------------------------------- + SEE ALSO -------- cdist(7) From f306004c9ca018abad6e1e1207ace40f01035127 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 15 Mar 2011 20:16:56 +0100 Subject: [PATCH 3/6] Moved manpages for addifnosuchline --- asd | 0 doc/man/{to_check => }/cdist-type-addifnosuchline.text | 0 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 asd rename doc/man/{to_check => }/cdist-type-addifnosuchline.text (100%) diff --git a/asd b/asd deleted file mode 100644 index e69de29b..00000000 diff --git a/doc/man/to_check/cdist-type-addifnosuchline.text b/doc/man/cdist-type-addifnosuchline.text similarity index 100% rename from doc/man/to_check/cdist-type-addifnosuchline.text rename to doc/man/cdist-type-addifnosuchline.text From 2072fc196f3ed01b045e3836f6afb33f27fdf335 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 15 Mar 2011 20:46:15 +0100 Subject: [PATCH 4/6] Examples changed --- doc/man/cdist-type-addifnosuchline.text | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/man/cdist-type-addifnosuchline.text b/doc/man/cdist-type-addifnosuchline.text index 12690000..2222283a 100644 --- a/doc/man/cdist-type-addifnosuchline.text +++ b/doc/man/cdist-type-addifnosuchline.text @@ -15,14 +15,14 @@ cdist-type-addifnosuchline Add if no such line DESCRIPTION ----------- -cdist-type-addifnosuchline can be used to check a file for existence of a +cdist-type-addifnosuchline can be used to check a file for existence of a specific line and adding that if not found REQUIRED PARAMETERS ------------------- line:: - Specifies the content which shall be added if not existing. + Specifies the content which shall be added if not existing. OPTIONAL PARAMETERS @@ -35,12 +35,12 @@ EXAMPLES -------- -------------------------------------------------------------------------------- -# Creates or appends the line specifiend in "foo" to the file "bar" +# Creates or appends the line specifiend in "include_www" to the file "lighttpd.conf" -__addifnosuchline foo --file bar --line foo +__addifnosuchline www --file lighttpd.conf --line include_www -# Adds the line "foo2" to the file "bar" -__addifnosuchline foo --file bar --line foo2 +# Adds the line "include_git" to the file "bar" +__addifnosuchline git_web --file lighttpd.conf --line include_git -------------------------------------------------------------------------------- From c010c9b2886c1786b13c2bfadeea71a61bf1e1bd Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 15 Mar 2011 21:02:47 +0100 Subject: [PATCH 5/6] moved manpages --- .../type/__addifnosuchline/man.text | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/man/cdist-type-addifnosuchline.text => conf/type/__addifnosuchline/man.text (100%) diff --git a/doc/man/cdist-type-addifnosuchline.text b/conf/type/__addifnosuchline/man.text similarity index 100% rename from doc/man/cdist-type-addifnosuchline.text rename to conf/type/__addifnosuchline/man.text From 2ed638a0a2bafc52f2421f808ee61be567c53aa1 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 15 Mar 2011 21:18:18 +0100 Subject: [PATCH 6/6] Minor doc fixes --- conf/type/__addifnosuchline/man.text | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/conf/type/__addifnosuchline/man.text b/conf/type/__addifnosuchline/man.text index 2222283a..3d332cd0 100644 --- a/conf/type/__addifnosuchline/man.text +++ b/conf/type/__addifnosuchline/man.text @@ -1,21 +1,21 @@ -cdist-type-addifnosuchline(1) +cdist-type__addifnosuchline(1) ====================== Daniel Roth NAME ---- -cdist-type-addifnosuchline +cdist-type__addifnosuchline - Add if no such line SYNOPSIS -------- -cdist-type-addifnosuchline Add if no such line +cdist-type__addifnosuchline - Add if no such line DESCRIPTION ----------- -cdist-type-addifnosuchline can be used to check a file for existence of a +cdist-type__addifnosuchline - can be used to check a file for existence of a specific line and adding that if not found @@ -36,17 +36,16 @@ EXAMPLES -------------------------------------------------------------------------------- # Creates or appends the line specifiend in "include_www" to the file "lighttpd.conf" - __addifnosuchline www --file lighttpd.conf --line include_www -# Adds the line "include_git" to the file "bar" -__addifnosuchline git_web --file lighttpd.conf --line include_git +# Adds the line "include_git" to the file "lighttpd.conf" +__addifnosuchline lighttpd.conf --line include_git -------------------------------------------------------------------------------- SEE ALSO -------- -cdist(7) +- cdist-type(7) COPYING