Sha256: 80137bd8de6f82927589c8cc56e4cb7e1ab2b92cacb4330e132ee832e5ed4e2a
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
# install rvm if missing class Bard::Provision::RVM < Bard::Provision def call print "RVM:" if !provision_server.run "[ -d ~/.rvm ]", quiet: true print " Installing RVM," provision_server.run! [ %(sed -i "1i[[ -s \\"$HOME/.rvm/scripts/rvm\\" ]] && source \\"$HOME/.rvm/scripts/rvm\\" # Load RVM into a shell session *as a function*" ~/.bashrc), "gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB", "curl -sSL https://get.rvm.io | bash -s stable", ].join("; ") print " Installing Ruby #{File.read(".ruby-version")}," provision_server.run! "rvm install ." end puts " ✓" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bard-1.0.0 | lib/bard/provision/rvm.rb |