2017-10-06 16:15:17 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
[ -z "$DEBUG" ] || set -x
|
|
|
|
|
|
|
|
echo 'Starting script/bootstrap'
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
|
|
|
|
|
|
|
rm -rf "${DIR}/.bundle"
|
|
|
|
|
|
|
|
echo 'Running bundler'
|
2024-08-13 17:23:27 +03:00
|
|
|
bundle config set --local no_prune 'true'
|
|
|
|
bundle config set --local path 'vendor/bundle'
|
|
|
|
bundle install --local
|
2017-10-06 16:15:17 +03:00
|
|
|
bundle clean
|
|
|
|
bundle binstubs --force puppet pry rake rspec-core rubocop
|
|
|
|
chmod 0755 bin/octofacts-updater
|
|
|
|
|
|
|
|
echo 'Completed script/bootstrap successfully'
|
|
|
|
exit 0
|