From ff6ecc7a7cda207eb61666deb52bd5a5a6d792ea Mon Sep 17 00:00:00 2001 From: achaitanyajami Date: Thu, 7 May 2020 20:25:26 +0530 Subject: [PATCH 1/3] undefined method set for # --- recipes/default.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index a5528a3..138f188 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -19,9 +19,9 @@ # limitations under the License. # -node.set[:rbenv][:root] = rbenv_root_path -node.set[:ruby_build][:prefix] = "#{node[:rbenv][:root]}/plugins/ruby_build" -node.set[:ruby_build][:bin_path] = "#{node[:ruby_build][:prefix]}/bin" +node.force_default[:rbenv][:root] = rbenv_root_path +node.force_default[:ruby_build][:prefix] = "#{node[:rbenv][:root]}/plugins/ruby_build" +node.force_default[:ruby_build][:bin_path] = "#{node[:ruby_build][:prefix]}/bin" case node[:platform] when "ubuntu", "debian" From e47337419391553dc56ce79613e197c47b48d1b4 Mon Sep 17 00:00:00 2001 From: achaitanyajami Date: Thu, 7 May 2020 20:48:22 +0530 Subject: [PATCH 2/3] Refactored user manage_home to conform to Chef 13 syntax --- recipes/default.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index 138f188..8227705 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -19,9 +19,9 @@ # limitations under the License. # -node.force_default[:rbenv][:root] = rbenv_root_path -node.force_default[:ruby_build][:prefix] = "#{node[:rbenv][:root]}/plugins/ruby_build" -node.force_default[:ruby_build][:bin_path] = "#{node[:ruby_build][:prefix]}/bin" +node.set[:rbenv][:root] = rbenv_root_path +node.set[:ruby_build][:prefix] = "#{node[:rbenv][:root]}/plugins/ruby_build" +node.set[:ruby_build][:bin_path] = "#{node[:ruby_build][:prefix]}/bin" case node[:platform] when "ubuntu", "debian" @@ -81,7 +81,7 @@ user node[:rbenv][:user] do shell "/bin/bash" group node[:rbenv][:group] - supports :manage_home => node[:rbenv][:manage_home] + manage_home node[:rbenv][:manage_home] home node[:rbenv][:user_home] end From 4356a0892c87aa5bd6145b86ce85b86aa20b50b2 Mon Sep 17 00:00:00 2001 From: achaitanyajami Date: Thu, 7 May 2020 20:54:24 +0530 Subject: [PATCH 3/3] undefined method set for # --- recipes/default.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index 8227705..28441f7 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -19,9 +19,9 @@ # limitations under the License. # -node.set[:rbenv][:root] = rbenv_root_path -node.set[:ruby_build][:prefix] = "#{node[:rbenv][:root]}/plugins/ruby_build" -node.set[:ruby_build][:bin_path] = "#{node[:ruby_build][:prefix]}/bin" +node.force_default[:rbenv][:root] = rbenv_root_path +node.force_default[:ruby_build][:prefix] = "#{node[:rbenv][:root]}/plugins/ruby_build" +node.force_default[:ruby_build][:bin_path] = "#{node[:ruby_build][:prefix]}/bin" case node[:platform] when "ubuntu", "debian"