]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/definitions/rails_port.rb
There is no separate rubygems or irb for ruby 1.9 and later
[chef.git] / cookbooks / web / definitions / rails_port.rb
index a072a88b683cc5161d26d419015a209335ea4b59..205695c08251fd8374756ffd351d29886f314a8c 100644 (file)
@@ -40,8 +40,8 @@ define :rails_port, :action => [:create, :enable] do
 
   package "ruby#{ruby_version}"
   package "ruby#{ruby_version}-dev"
-  package "rubygems#{ruby_version}"
-  package "irb#{ruby_version}"
+  package "rubygems#{ruby_version}" if ruby_version.to_f < 1.9
+  package "irb#{ruby_version}" if ruby_version.to_f < 1.9
   package "imagemagick"
   package "nodejs"