summaryrefslogtreecommitdiff
path: root/lib/chef/shell.rb
diff options
context:
space:
mode:
authorMarc Chamberland <mchamberland@pbsc.com>2019-04-06 19:16:22 -0400
committerMarc Chamberland <mchamberland@pbsc.com>2019-04-19 19:02:35 -0400
commit33d1f9e3ad1013387a3b3a53d6969c905942b692 (patch)
treeff8ed416f691478e046a65210040311a6608d985 /lib/chef/shell.rb
parentf1a97f33d4b67645ed55ce6e15274d6adf396670 (diff)
downloadchef-33d1f9e3ad1013387a3b3a53d6969c905942b692.tar.gz
Replacing workmarks with distro constants
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
Diffstat (limited to 'lib/chef/shell.rb')
-rw-r--r--lib/chef/shell.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb
index e717c3705e..f05e63b420 100644
--- a/lib/chef/shell.rb
+++ b/lib/chef/shell.rb
@@ -25,6 +25,7 @@ require "chef/version"
require "chef/client"
require "chef/config"
require "chef/config_fetcher"
+require "chef/dist"
require "chef/shell/shell_session"
require "chef/workstation_config_loader"
@@ -253,7 +254,7 @@ module Shell
option :client,
short: "-z",
long: "--client",
- description: "chef-client session",
+ description: "#{Chef::Dist::CLIENT} session",
boolean: true
option :solo_legacy_shell,
@@ -271,15 +272,15 @@ module Shell
option :chef_server_url,
short: "-S CHEFSERVERURL",
long: "--server CHEFSERVERURL",
- description: "The chef server URL",
+ description: "The #{Chef::Dist::PRODUCT} server URL",
proc: nil
option :version,
short: "-v",
long: "--version",
- description: "Show chef version",
+ description: "Show #{Chef::Dist::PRODUCT} version",
boolean: true,
- proc: lambda { |v| puts "Chef: #{::Chef::VERSION}" },
+ proc: lambda { |v| puts "#{Chef::Dist::PRODUCT}: #{::Chef::VERSION}" },
exit: 0
option :override_runlist,