summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-26 15:22:33 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-27 10:23:20 -0800
commitd35936671146cf5a72bd45970edfdc2197073c70 (patch)
tree3c6c74aea6d606dc702fe6f677a0e9a1ad631e33 /lib
parent7520f3d36d2c8029c6c2996dd9289e9f74b9e6d3 (diff)
downloadchef-d35936671146cf5a72bd45970edfdc2197073c70.tar.gz
Make chef_gem.gem_binary use correct default valuejk/nil-for-reals
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/chef_gem.rb2
1 files changed, 1 insertions, 1 deletions
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