Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from puppetlabs/mv
Provide mv wrapper task
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"description": "Wrapper task for mv command", | ||
"parameters": { | ||
"source": { | ||
"type": "String", | ||
"description": "Current path of file" | ||
}, | ||
"target": { | ||
"type": "String", | ||
"description": "New path of file" | ||
} | ||
}, | ||
"input_method": "environment", | ||
"implementations": [ | ||
{"name": "mv.sh"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# This task exists as a convenience for users who need predictable sudo | ||
# commands without variance to write into their sudoers rules. The only real | ||
# variable in commands used by peadm is the filename of the PE installer | ||
# tarball. This task can be used in a pre-plan to homogenize calls to sudo. | ||
# Rather than literally calling "mv" with a variable filename, the mv.sh task | ||
# can be called. Inputs come as environment variables so the call doesn't | ||
# change. | ||
|
||
mv "$PT_source" "$PT_target" |