diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-15 21:03:34 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-15 21:03:34 -0700 |
commit | b803985ea6e960d14af2e9a81c74983b1b86c6bd (patch) | |
tree | a0104760420bcd4a4e918e6551b990578503d8da /lib | |
parent | 3d4827a9a01acfedc0748fec088b9cf0650d6c9d (diff) | |
download | chef-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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/application/base.rb | 5 | ||||
-rw-r--r-- | lib/chef/application/client.rb | 5 |
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", |