Sha256: 7bba113707cff41bb9a8e9ed3c5f37047a176ca1f49570663bff196292e74241
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
namespace :ruby do namespace :centos do desc "Install ruby and rubygems" task :install do # Install dependencies yum.install([ "zlib", "zlib-devel" ]) ruby_options = { :url => "http://capigen.s3.amazonaws.com/ruby-1.8.6-p110.tar.gz", :build_dest => "/usr/src", :configure_options => "--prefix=/usr", :clean => false } # Install ruby 1.8.6 script.make_install("ruby", ruby_options) # Fix openssl script.sh("ruby/fix_openssl.sh") rubygems_options = { :url => "http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz" } # Install rubygems script.install("rubygems", rubygems_options) do |dir| sudo "echo 'Running setup...' && cd #{dir} && ruby setup.rb > install.log" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.1.8 | lib/recipes/centos/ruby.rb |
capitate-0.1.9 | lib/recipes/centos/ruby.rb |