summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-15 21:20:43 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-15 21:20:43 -0700
commit7109ea1f3ea01e768151380c6f2bc000b6396b6f (patch)
treedf242a9c90683f6031d12a3a4d679e89b62b08c4
parent30ccdb8d5f56afe54d1a0ed38a4731e9a16adb4a (diff)
downloadchef-7109ea1f3ea01e768151380c6f2bc000b6396b6f.tar.gz
migrate --delete-entire-chef-repo to base class
this is a trivial duplication Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/application/base.rb5
-rw-r--r--lib/chef/application/client.rb5
-rw-r--r--lib/chef/application/solo.rb5
3 files changed, 5 insertions, 10 deletions
diff --git a/lib/chef/application/base.rb b/lib/chef/application/base.rb
index 5f1d6255f1..955d96b2a7 100644
--- a/lib/chef/application/base.rb
+++ b/lib/chef/application/base.rb
@@ -181,6 +181,11 @@ class Chef::Application::Base < Chef::Application
description: "Only run the bare minimum Ohai plugins #{Chef::Dist::PRODUCT} needs to function.",
boolean: true
+ option :delete_entire_chef_repo,
+ long: "--delete-entire-chef-repo",
+ description: "DANGEROUS: does what it says, only useful with --recipe-url.",
+ boolean: true
+
option :ez,
long: "--ez",
description: "A memorial for Ezra Zygmuntowicz.",
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index e13c6af049..60d60e21c5 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -128,11 +128,6 @@ class Chef::Application::Client < Chef::Application::Base
description: "Enable FIPS mode.",
boolean: true
- option :delete_entire_chef_repo,
- long: "--delete-entire-chef-repo",
- description: "DANGEROUS: does what it says, only useful with --recipe-url.",
- boolean: true
-
option :skip_cookbook_sync,
long: "--[no-]skip-cookbook-sync",
description: "Use cached cookbooks without overwriting local differences from the #{Chef::Dist::SERVER_PRODUCT}.",
diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb
index f8575ca79d..d4107eb5ed 100644
--- a/lib/chef/application/solo.rb
+++ b/lib/chef/application/solo.rb
@@ -43,11 +43,6 @@ class Chef::Application::Solo < Chef::Application::Base
long: "--recipe-url RECIPE_URL",
description: "Pull down a remote gzipped tarball of recipes and untar it to the cookbook cache."
- option :delete_entire_chef_repo,
- long: "--delete-entire-chef-repo",
- description: "DANGEROUS: does what it says, only useful with --recipe-url.",
- boolean: true
-
option :solo_legacy_mode,
long: "--legacy-mode",
description: "Run #{Chef::Dist::SOLO} in legacy mode.",