Sha256: f426e26b629cf9ce64eb9306320c85effa5d419d51ba96a1ae49b3ee1bc4f555

Contents?: true

Size: 1.13 KB

Versions: 65

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:/sbin", "/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

65 entries across 65 versions & 2 rubygems

Version Path
auser-poolparty-0.2.16 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.20 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.21 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.22 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.23 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.24 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.25 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.26 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.35 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.36 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.37 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.38 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.39 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.40 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.41 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.42 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.44 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.45 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.46 lib/poolparty/base_packages/ruby.rb
auser-poolparty-0.2.47 lib/poolparty/base_packages/ruby.rb