summaryrefslogtreecommitdiff
path: root/lib/chef/knife/config_get.rb
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-08-21 16:49:43 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-08-25 16:31:47 +0530
commitb1eb31f3f84aeaf37bdf8c35b5c1bd5a2a290967 (patch)
treee73ea9b245c6270c3ef568f7c8657fcc83adf9e0 /lib/chef/knife/config_get.rb
parent03f822e5e1772f3ad7c7c5232f5c17f6263f6688 (diff)
downloadchef-b1eb31f3f84aeaf37bdf8c35b5c1bd5a2a290967.tar.gz
Add deprecation warning
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'lib/chef/knife/config_get.rb')
-rw-r--r--lib/chef/knife/config_get.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/knife/config_get.rb b/lib/chef/knife/config_get.rb
index 9a57d14316..023c82e8a9 100644
--- a/lib/chef/knife/config_get.rb
+++ b/lib/chef/knife/config_get.rb
@@ -23,6 +23,7 @@ class Chef
class Knife
class ConfigGet < Knife
banner "knife config get [OPTION...] (options)\nDisplays the value of Chef::Config[OPTION] (or all config values)"
+ category "deprecated"
option :all,
short: "-a",
@@ -37,6 +38,8 @@ class Chef
default: false
def run
+ Chef::Log.warn("knife config get has been deprecated in favor of knife config show. This will removed in marjor release verison!")
+
if config[:format] == "summary" && !config[:raw]
# If using the default, human-readable output, also show which config files are being loaded.
# Some of this is a bit hacky since it duplicates