Skip to content

Instantly share code, notes, and snippets.

@radamant
Created December 4, 2010 22:35
Show Gist options
  • Select an option

  • Save radamant/728556 to your computer and use it in GitHub Desktop.

Select an option

Save radamant/728556 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo "Gem path: $GEM_PATH"
echo "Gem home: $GEM_HOME"
echo "Ruby version: $(ruby -v)"
echo ""
if ! `gem list rake -iq`
then
gem install --no-ri --no-rdoc bundler
else
echo "Rake installed"
fi
if ! `gem list bundler -iq`
then
gem install --no-ri --no-rdoc bundler
else
echo "Bundler installed"
fi
/home/teamcity/.gems/gems/bundler-1.0.7/bin/bundle
whoami
env
echo
echo
which gem
ruby -v
which ruby
echo
echo
echo $GEM_PATH
echo $GEM_HOME
echo
echo
gem install rake --no-ri --no-rdoc
gem install bundler --no-ri --no-rdoc
gem install test-unit
/home/teamcity/.gems/gems/bundler-1.0.7/bin/bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment