summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-15 21:03:34 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-15 21:03:34 -0700
commitb803985ea6e960d14af2e9a81c74983b1b86c6bd (patch)
treea0104760420bcd4a4e918e6551b990578503d8da
parent3d4827a9a01acfedc0748fec088b9cf0650d6c9d (diff)
downloadchef-b803985ea6e960d14af2e9a81c74983b1b86c6bd.tar.gz
add --once to base class
this was not present in chef-solo for whatever reason even though the code is there, it has always been broken
-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 a40a257610..8daac76cd5 100644
--- a/lib/chef/application/base.rb
+++ b/lib/chef/application/base.rb
@@ -39,6 +39,11 @@ class Chef::Application::Base < Chef::Application
existing
}
+ option :once,
+ long: "--once",
+ description: "Cancel any interval or splay options, run #{Chef::Dist::PRODUCT} once and exit.",
+ boolean: true
+
option :formatter,
short: "-F FORMATTER",
long: "--format FORMATTER",
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index 4355c0f04b..3a060298e3 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -47,11 +47,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 :once,
- long: "--once",
- description: "Cancel any interval or splay options, run #{Chef::Dist::CLIENT} once and exit.",
- boolean: true
-
option :chef_server_url,
short: "-S CHEFSERVERURL",
long: "--server CHEFSERVERURL",