Sha256: c1d3c6a973a0d4f0d223c219e4954da743d9bf369049902f78fa15cf6d3909af

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

module PoolParty
  class Base
    plugin :ruby do
      
      def enable                
        install_base_packages
      end
      
      def install_base_packages
        has_package(:name => "libreadline-ruby1.8")
        has_package(:name => "libruby1.8")                
        has_package(:name => "ruby1.8-dev")
        has_package(:name => "ruby1.8")        
        
        has_line_in_file("export PATH=$PATH:/var/lib/gems/1.8/bin/", "/etc/profile")
        
        # exec(:name => "update-rubygems") do
        #   command "gem update --system"
        #   onlyif "gem -v | grep 1."
        #   notify 'Exec["fix-updated-rubygems"]'
        # end
        # exec(:name => "fix-updated-rubygems") do
        #   command "awk \'{print} NR == 9 {print \"require \"rubygems/gem_runner\"\"}\' /usr/bin/gem"
        #   ifnot "awk \"/gem_runner/\" /usr/bin/gem"
        # end
      end
      
      def enable_ri
        has_package(:name => "ri1.8")
      end
      
      def enable_irb
        has_package(:name => "irb1.8")
      end
      
      def enable_rdoc
        has_package(:name => "rdoc1.8")
      end
      
    end  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auser-poolparty-0.2.15 lib/poolparty/base_packages/ruby.rb