]> git.openstreetmap.org Git - chef.git/commitdiff
Install taginfo gems using the correct gem binary
authorTom Hughes <tom@compton.nu>
Mon, 7 Dec 2015 14:47:07 +0000 (14:47 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 7 Dec 2015 14:47:07 +0000 (14:47 +0000)
cookbooks/taginfo/recipes/default.rb

index 86ef9d44ebe726a3bd91a3ae93dc0b47c21b4b9b..4d9efdefde5959c2df95163512e2c3a0116e7cb7 100644 (file)
@@ -41,13 +41,15 @@ package "osmosis"
 package "curl"
 package "m4"
 
-package "ruby#{node[:passenger][:ruby_version]}"
+ruby_version = node[:passenger][:ruby_version]
 
-gem_package "json"
-gem_package "sqlite3"
-gem_package "sinatra"
-gem_package "sinatra-r18n"
-gem_package "rack-contrib"
+package "ruby#{ruby_version}"
+
+%w(json sqlite3 sinatra sinatra-r18n rack-contrib).each do |gem|
+  gem_package gem do
+    gem_binary "gem#{ruby_version}"
+  end
+end
 
 apache_module "cache"
 apache_module "cache_disk"