Browse Source

revert __line for clean PR history

pull/339/head
stephan 3 weeks ago
parent
commit
17466452f0
  1. 12
      cdist/conf/type/__line/gencode-remote
  2. 6
      cdist/conf/type/__line/man.rst
  3. 2
      cdist/conf/type/__line/parameter/boolean
  4. 1
      cdist/conf/type/__line/parameter/default/create
  5. 1
      cdist/conf/type/__line/parameter/default/ifexists

12
cdist/conf/type/__line/gencode-remote vendored

@ -34,16 +34,8 @@ state_should="$(cat "$__object/parameter/state")"
state_is="$(cat "$__object/explorer/state")"
if [ -z "$state_is" ]; then
if [ -f "$__object/parameter/create" ]; then
echo "touch $file"
else
# only bark if the file should exists
if [ -f "$__object/parameter/ifexists" ]; then
exit 0
fi
printf 'The file "%s" is missing. Please create it before using %s on it.\n' "$file" "${__type##*/}" >&2
exit 1
fi
printf 'The file "%s" is missing. Please create it before using %s on it.\n' "$file" "${__type##*/}" >&2
exit 1
fi
if [ "$state_should" = "$state_is" ] || \

6
cdist/conf/type/__line/man.rst vendored

@ -21,9 +21,6 @@ OPTIONAL PARAMETERS
after
Insert the given line after this pattern.
create
It the file does not exist then create an empty file
before
Insert the given line before this pattern.
@ -31,9 +28,6 @@ file
If supplied, use this as the destination file.
Otherwise the object_id is used.
ifexists
Only apply the line if the file exists.
line
Specifies the line which should be absent or present.

2
cdist/conf/type/__line/parameter/boolean vendored

@ -1,2 +0,0 @@
create
ifexists

1
cdist/conf/type/__line/parameter/default/create vendored

@ -1 +0,0 @@
false

1
cdist/conf/type/__line/parameter/default/ifexists vendored

@ -1 +0,0 @@
false
Loading…
Cancel
Save