]> git.openstreetmap.org Git - chef.git/commitdiff
Use ruby 3.0 on Ubuntu 22.04
authorTom Hughes <tom@compton.nu>
Wed, 29 Jun 2022 07:55:41 +0000 (08:55 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 29 Jun 2022 07:55:41 +0000 (08:55 +0100)
cookbooks/ruby/attributes/default.rb

index 39e975e0660cf3f95ef6c72585bcb8ced9c73886..33ce58c0fe960adb02ed3a7ec2abd0e6ba0a6779 100644 (file)
@@ -1,6 +1,6 @@
-default[:ruby][:version] = if node[:lsb][:release].to_f < 20.04
-                             "2.5"
-                           else
+default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04
                              "2.7"
+                           else
+                             "3.0"
                            end
 default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"