]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ruby/attributes/default.rb
Make sure the correct gem is used to install ruby packages
[chef.git] / cookbooks / ruby / attributes / default.rb
index 33ce58c0fe960adb02ed3a7ec2abd0e6ba0a6779..4ed2a3bb70d58b0f1e8c1b252b9d6597e1e822da 100644 (file)
@@ -3,4 +3,5 @@ default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04
                            else
                              "3.0"
                            end
+default[:ruby][:gem] = "/usr/bin/gem#{node[:ruby][:version]}"
 default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"