Sha256: 142f468b964a844c2e0909d8f0c38cc5b7014ba9e6461cff2729b3a2503edb17
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
package 'zlib1g' package 'zlib1g-dev' package 'libssl-dev' package "curl" cookbook_file '/tmp/rvm-install-system-wide' do source 'rvm-install-system-wide' mode 0644 end cookbook_file '/tmp/source-rvm' do source 'source-rvm' mode 0644 end bash "install rvm" do environment "HOME"=>"/root" code <<-BASH bash < /tmp/rvm-install-system-wide BASH not_if { ::FileTest.exists?("/usr/local/rvm") } end bash "install ruby 1.9.2" do environment "HOME"=>"/root" code <<-BASH source '/usr/local/rvm/scripts/rvm' rvm package install readline rvm install ruby-1.9.2 -C --with-readline-dir=$HOME/.rvm/usr BASH not_if { ::FileTest.exists?("/usr/local/rvm/rubies/ruby-1.9.2") } end bash "source rvm in bashrc" do code <<-BASH cat /tmp/source-rvm >> ~/.bashrc BASH not_if "type rvm | head -n 1 | grep 'is a function'" end bash "source rvm in bashrc for root" do user "root" code <<-BASH cat /tmp/source-rvm >> ~/.bashrc BASH not_if "type rvm | head -n 1 | grep 'is a function'" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
casper-0.0.1.1 | test/cookbooks/rvm/recipes/default.rb |
casper-0.0.1 | test/cookbooks/rvm/recipes/default.rb |