diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-15 21:04:46 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-15 21:04:46 -0700 |
commit | d37559196ac53de0aedfc1d48f19265c1613f21e (patch) | |
tree | a8ebed42fdd95a2021faf058efbd62f712b55be8 /lib/chef/application | |
parent | b803985ea6e960d14af2e9a81c74983b1b86c6bd (diff) | |
download | chef-d37559196ac53de0aedfc1d48f19265c1613f21e.tar.gz |
change some uses of CLIENT to PRODUCT in the base class
Diffstat (limited to 'lib/chef/application')
-rw-r--r-- | lib/chef/application/base.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/application/base.rb b/lib/chef/application/base.rb index 8daac76cd5..cbbdae07c4 100644 --- a/lib/chef/application/base.rb +++ b/lib/chef/application/base.rb @@ -115,7 +115,7 @@ class Chef::Application::Base < Chef::Application option :interval, short: "-i SECONDS", long: "--interval SECONDS", - description: "Run #{Chef::Dist::CLIENT} periodically, in seconds.", + description: "Run #{Chef::Dist::PRODUCT} periodically, in seconds.", proc: lambda { |s| s.to_i } option :json_attribs, @@ -144,7 +144,7 @@ class Chef::Application::Base < Chef::Application option :client_fork, short: "-f", long: "--[no-]fork", - description: "Fork #{Chef::Dist::CLIENT} process." + description: "Fork #{Chef::Dist::PRODUCT} process." option :why_run, short: "-W", @@ -190,10 +190,10 @@ class Chef::Application::Base < Chef::Application private def unforked_interval_error_message - "Unforked #{Chef::Dist::CLIENT} interval runs are disabled by default." + + "Unforked #{Chef::Dist::PRODUCT} interval runs are disabled by default." + "\nConfiguration settings:" + ("\n interval = #{Chef::Config[:interval]} seconds" if Chef::Config[:interval]).to_s + - "\nEnable #{Chef::Dist::CLIENT} interval runs by setting `:client_fork = true` in your config file or adding `--fork` to your command line options." + "\nEnable #{Chef::Dist::PRODUCT} interval runs by setting `:client_fork = true` in your config file or adding `--fork` to your command line options." end def fetch_recipe_tarball(url, path) |