Skip to content

Instantly share code, notes, and snippets.

Created October 1, 2012 20:09
Show Gist options
  • Save anonymous/3814121 to your computer and use it in GitHub Desktop.
Save anonymous/3814121 to your computer and use it in GitHub Desktop.
chef rvm hell, this blows up
script "RVM" do
interpreter 'bash'
flags '-l'
user 'vagrant'
code <<-EOS
whoami
if [ -f /home/vagrant/.rvm/bin/rvm ]
then
echo "RVM is installed skipping...."
else
echo "RVM not here, need to install"
#curl -L get.rvm.io | bash -s stable --auto
bash -c "curl -L get.rvm.io | bash -s"
ls -al
bash ./install_rvm.sh
fi
/home/vagrant/.rvm/bin/rvm list
EOS
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment