From d35936671146cf5a72bd45970edfdc2197073c70 Mon Sep 17 00:00:00 2001 From: John Keiser Date: Tue, 26 Jan 2016 15:22:33 -0800 Subject: Make chef_gem.gem_binary use correct default value --- lib/chef/resource/chef_gem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef') diff --git a/lib/chef/resource/chef_gem.rb b/lib/chef/resource/chef_gem.rb index 655534684c..f2b16d5067 100644 --- a/lib/chef/resource/chef_gem.rb +++ b/lib/chef/resource/chef_gem.rb @@ -26,7 +26,7 @@ class Chef property :gem_binary, default: "#{RbConfig::CONFIG['bindir']}/gem", callbacks: { - "The chef_gem resource is restricted to the current gem environment, use gem_package to install to other environments." => proc { |v| v == properties[:gem_binary].default } + "The chef_gem resource is restricted to the current gem environment, use gem_package to install to other environments." => proc { |v| v == "#{RbConfig::CONFIG['bindir']}/gem" } } property :compile_time, [ true, false, nil ], default: lazy { Chef::Config[:chef_gem_compile_time] }, desired_state: false -- cgit v1.2.1