X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/99e00a34031960fa05d332ce803fd095dc9dfcd9..5e01e28d3970940f3be03d7bfa514373175caad8:/cookbooks/ruby/attributes/default.rb?ds=sidebyside diff --git a/cookbooks/ruby/attributes/default.rb b/cookbooks/ruby/attributes/default.rb index 39e975e06..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 < 20.04 - "2.5" - else +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]}"