summaryrefslogtreecommitdiff
path: root/lib/chef/resource/chef_gem.rb
diff options
context:
space:
mode:
authorMarc Chamberland <mchamberland@pbsc.com>2019-04-25 23:58:27 -0400
committerMarc Chamberland <mchamberland@pbsc.com>2019-04-26 00:24:33 -0400
commit0fb79f0a5f8d2c8ca1f9ddb0d0b0267b300dc81f (patch)
tree7984d75e847846eb31923fd26ef51e625d55a0d5 /lib/chef/resource/chef_gem.rb
parent66c0fdeb65c19d267bd501550e60cd16d7bb4901 (diff)
downloadchef-0fb79f0a5f8d2c8ca1f9ddb0d0b0267b300dc81f.tar.gz
chef-client => Chef::Dist::CLIENT
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
Diffstat (limited to 'lib/chef/resource/chef_gem.rb')
-rw-r--r--lib/chef/resource/chef_gem.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/chef_gem.rb b/lib/chef/resource/chef_gem.rb
index 2079e5d796..7655d6651c 100644
--- a/lib/chef/resource/chef_gem.rb
+++ b/lib/chef/resource/chef_gem.rb
@@ -18,6 +18,7 @@
require "chef/resource/package"
require "chef/resource/gem_package"
+require "chef/dist"
class Chef
class Resource
@@ -37,12 +38,12 @@ class Chef
resource_name :chef_gem
property :gem_binary, default: "#{RbConfig::CONFIG['bindir']}/gem", default_description: "Chef's built-in gem binary.",
- description: "The path of a gem binary to use for the installation. By default, the same version of Ruby that is used by the chef-client will be installed.",
+ description: "The path of a gem binary to use for the installation. By default, the same version of Ruby that is used by the #{Chef::Dist::CLIENT} will be installed.",
callbacks: {
"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, [TrueClass, FalseClass],
- description: "Controls the phase during which a gem is installed on a node. Set to 'true' to install a gem while the resource collection is being built (the 'compile phase'). Set to 'false' to install a gem while the chef-client is configuring the node (the 'converge phase').",
+ description: "Controls the phase during which a gem is installed on a node. Set to 'true' to install a gem while the resource collection is being built (the 'compile phase'). Set to 'false' to install a gem while the #{Chef::Dist::CLIENT} is configuring the node (the 'converge phase').",
default: false, desired_state: false
# force the resource to compile time if the compile time property has been set