summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-15 22:00:10 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-15 22:00:10 -0700
commitbeab2bb9b474237f258921b3b77db915419ceef3 (patch)
tree215797abb0431105671570cb0de93587145e30a1
parentd68ecc918ec7e3c48b92b39341d7649812a19768 (diff)
downloadchef-beab2bb9b474237f258921b3b77db915419ceef3.tar.gz
support named run list on commandline in solo
this has to fix a bug for someone. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/application/base.rb5
-rw-r--r--lib/chef/application/client.rb5
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/application/base.rb b/lib/chef/application/base.rb
index e55324272a..f3a9ebf14e 100644
--- a/lib/chef/application/base.rb
+++ b/lib/chef/application/base.rb
@@ -286,6 +286,11 @@ class Chef::Application::Base < Chef::Application
description: "(#{Chef::Dist::CLIENT} only) Use cached cookbooks without overwriting local differences from the #{Chef::Dist::SERVER_PRODUCT}.",
boolean: false
+ option :named_run_list,
+ short: "-n NAMED_RUN_LIST",
+ long: "--named-run-list NAMED_RUN_LIST",
+ description: "Use a policyfile's named run list instead of the default run list."
+
IMMEDIATE_RUN_SIGNAL = "1".freeze
RECONFIGURE_SIGNAL = "H".freeze
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index e36c990c65..0fc5ca7711 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -48,11 +48,6 @@ class Chef::Application::Client < Chef::Application::Base
description: "Set the PID file location, for the #{Chef::Dist::CLIENT} daemon process. Defaults to /tmp/chef-client.pid.",
proc: nil
- option :named_run_list,
- short: "-n NAMED_RUN_LIST",
- long: "--named-run-list NAMED_RUN_LIST",
- description: "Use a policyfile's named run list instead of the default run list."
-
option :runlist,
short: "-r RunlistItem,RunlistItem...",
long: "--runlist RunlistItem,RunlistItem...",