X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/29b058d82947a8ce172388d30b3cef650cf8de1e..5a207c66f87d1d119e0b3824345e1371e686eb7c:/cookbooks/ruby/attributes/default.rb?ds=inline diff --git a/cookbooks/ruby/attributes/default.rb b/cookbooks/ruby/attributes/default.rb index 33ce58c0f..eefaf2247 100644 --- a/cookbooks/ruby/attributes/default.rb +++ b/cookbooks/ruby/attributes/default.rb @@ -1,6 +1,9 @@ -default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04 +default[:ruby][:version] = if platform?("debian") + "3.1" + elsif node[:lsb][:release].to_f < 22.04 "2.7" else "3.0" end +default[:ruby][:gem] = "/usr/bin/gem#{node[:ruby][:version]}" default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"