2016-07-20 12:08:13 -04:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# functions - puppet-openstack_spec_helper specific functions
|
|
|
|
#
|
|
|
|
|
|
|
|
prepare_environment() {
|
2016-08-03 17:46:40 -04:00
|
|
|
rm -rf .bundled_gems puppet-whazz default-config.yaml
|
2016-07-20 12:08:13 -04:00
|
|
|
mkdir .bundled_gems
|
|
|
|
export GEM_HOME=`pwd`/.bundled_gems
|
|
|
|
gem install bundler --no-rdoc --no-ri --verbose
|
|
|
|
|
|
|
|
# Build fake module
|
|
|
|
OS_NEW_MODULE_TEST=yes bash -x ./contrib/bootstrap.sh whazz dummy
|
|
|
|
cd puppet-whazz/openstack/puppet-modulesync-configs/modules/puppet-whazz
|
|
|
|
|
|
|
|
$GEM_HOME/bin/bundle install
|
|
|
|
}
|