Created
October 1, 2012 20:09
-
-
Save anonymous/3814121 to your computer and use it in GitHub Desktop.
chef rvm hell, this blows up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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