Sha256: 98df3c61bc06854a90735f2c5ac94c8b06318c668c4830ed634af7fff2f7317b

Contents?: true

Size: 1.13 KB

Versions: 17

Compression:

Stored size: 1.13 KB

Contents

module PoolParty
  class Base
    plugin :poolparty_base_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(:line => "export PATH=$PATH:/var/lib/gems/1.8/bin", :file => "/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

17 entries across 17 versions & 3 rubygems

Version Path
auser-poolparty-1.1.1 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.1.3 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.1.4 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.1.5 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.1.6 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.1.7 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.0 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.1 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.2 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.3 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.4 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.7 lib/poolparty/base_packages/ruby.rb
auser-poolparty-1.2.8 lib/poolparty/base_packages/ruby.rb
fairchild-poolparty-1.1.3 lib/poolparty/base_packages/ruby.rb
fairchild-poolparty-1.1.4 lib/poolparty/base_packages/ruby.rb
fairchild-poolparty-1.1.5 lib/poolparty/base_packages/ruby.rb
poolparty-1.2.2 lib/poolparty/base_packages/ruby.rb