Sha256: 192c85862615df54c259504a1361ac60af9f7fda2460aff33beb959da6e59d89

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

namespace :ruby do 
  
  namespace :centos do
  
    desc <<-DESC
    Install ruby and rubygems.
    
    *ruby_build_options*: Ruby build options.\n
    *rubygems_build_options*: Rubygems build options.\n
    DESC
    task :install do 

      # Settings
      fetch(:ruby_build_options)
      fetch(:rubygems_build_options)
    
      # Install dependencies
      yum.install([ "zlib", "zlib-devel" ])
    
      # Install ruby 1.8.6
      script.make_install("ruby", ruby_build_options)
    
      # Install rubygems
      script.install("rubygems", rubygems_build_options) do |dir|
        run_via "echo 'Running setup...' && cd #{dir} && ruby setup.rb > install.log"
      end
    
    end        
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capitate-0.2.1 lib/recipes/centos/ruby.rb
capitate-0.2.2 lib/recipes/centos/ruby.rb
capitate-0.2.3 lib/recipes/centos/ruby.rb