1
0
Fork 0
puppet-whatpulse/script/cardboard-exec
2013-02-13 11:10:10 -08:00

19 lines
416 B
Bash
Executable file

#!/bin/sh
# Make sure deps are available and run a Cardboard command.
set -e
cd $(dirname "$0")/..
BUNDLE=.bundle
BIN=$BUNDLE/binstubs
SCRIPT=$(basename "$0")
BUNDLE_ARGS="--binstubs $BIN --path $BUNDLE --quiet"
[ "cibuild" = "$SCRIPT" ] && BUNDLE_ARGS="$BUNDLE_ARGS --no-quiet"
rm -rf {$BIN,$BUNDLE/config}
bundle install $BUNDLE_ARGS
bundle exec cardboard bootstrap
exec bundle exec cardboard "$SCRIPT" "$@"