]> git.openstreetmap.org Git - chef.git/blob - cookbooks/ruby/attributes/default.rb
4ed2a3bb70d58b0f1e8c1b252b9d6597e1e822da
[chef.git] / cookbooks / ruby / attributes / default.rb
1 default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04
2                              "2.7"
3                            else
4                              "3.0"
5                            end
6 default[:ruby][:gem] = "/usr/bin/gem#{node[:ruby][:version]}"
7 default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"