cleanups in bin/

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-31 18:43:08 +02:00
parent 7431802b03
commit 9955dc74c6
4 changed files with 7 additions and 8 deletions

View file

@ -36,7 +36,6 @@ code="$(__cdist_object_code "$__cdist_object")-${__cdist_gencode_type}"
echo "Checking code-${__cdist_gencode_type} for $__cdist_object ..." echo "Checking code-${__cdist_gencode_type} for $__cdist_object ..."
if [ -e "$code" ]; then if [ -e "$code" ]; then
if [ -f "$code" ]; then if [ -f "$code" ]; then
if [ -x "$code" ]; then if [ -x "$code" ]; then

View file

@ -18,7 +18,7 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>. # along with cdist. If not, see <http://www.gnu.org/licenses/>.
# #
# #
# Apply configuration to a host # Deploy configuration to a host
# #
. cdist-config . cdist-config
@ -45,8 +45,8 @@ __cdist_init_deploy "$__cdist_target_host"
# Transfer cdist executables # Transfer cdist executables
echo "Transferring cdist binaries to $__cdist_target_host ..." echo "Transferring cdist binaries to $__cdist_target_host ..."
cdist-dir push "$__cdist_target_host" "${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}" cdist-dir push "$__cdist_target_host" \
"${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}"
cdist-explorer-run-global "$__cdist_target_host" cdist-explorer-run-global "$__cdist_target_host"
cdist-manifest-run-init "$__cdist_target_host" cdist-manifest-run-init "$__cdist_target_host"
cdist-object-all "$__cdist_target_host" cdist-object-process cdist-object-all "$__cdist_target_host" cdist-object-process

View file

@ -25,14 +25,11 @@
. cdist-config . cdist-config
if [ $# -ne 4 ]; then [ $# -eq 4 ] || __cdist_usage "<push|pull> <target host> <src dir> <dst dir>"
__cdist_usage "<push|pull> <target host> <src dir> <dst dir>"
fi
set -ue set -ue
__cdist_action="$1"; shift __cdist_action="$1"; shift
__cdist_target_host="$1"; shift __cdist_target_host="$1"; shift
__cdist_src_dir="$1"; shift __cdist_src_dir="$1"; shift
__cdist_dst_dir="$1"; shift __cdist_dst_dir="$1"; shift

View file

@ -10,6 +10,9 @@ CORE
__cdist_echo [level] [messages...] __cdist_echo [level] [messages...]
level := syslog alike: level := syslog alike:
debug, notice, err debug, notice, err
- Think about moving cdist-type-build-emulation out of cdist-manifest-run to
cdist-deploy-to: more dependency of cdist-manifest-run, but a lot of
less cycles consumed
TYPES TYPES
------ ------