beaker/puppet: install bundle before revoking sudo

To install bundle with `gem install`, we need sudo so let's move the
sudo command *before* revoking sudo in the job.

Change-Id: I46505a045c4d2edbe7e87035a94636a645931501
This commit is contained in:
Emilien Macchi 2015-05-08 15:09:54 -04:00
parent 324923f55f
commit d404607bf5

@ -53,9 +53,9 @@
elif [ -f /usr/bin/apt-get ]; then
sudo service ssh restart
fi
sudo gem install bundler --no-rdoc --no-ri --verbose
- revoke-sudo
- shell: |
sudo gem install bundler --no-rdoc --no-ri --verbose
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
bundle install