puppet-openstack-cookiecutter/functions
Emilien Macchi 211a579dee Add .gitignore and cleanup in functions
* Add .gitignore to not commit files generated by testing scripts
  (run_*.sh)
* Cleanup generated files in functions, before running tests. It avois
  manual cleanup.

Change-Id: I81b4403f7ad083c8339b9bf4dbf184be69f3654f
2016-08-03 17:46:40 -04:00

18 lines
469 B
Bash

#!/bin/bash
#
# functions - puppet-openstack_spec_helper specific functions
#
prepare_environment() {
rm -rf .bundled_gems puppet-whazz default-config.yaml
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
}