summaryrefslogtreecommitdiff
path: root/lib/chef/knife/cookbook_site_share.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-01-22 13:22:59 -0800
committerTim Smith <tsmith@chef.io>2019-01-22 13:22:59 -0800
commit2a52b0208a4f22ff2eed04da980d9c32c175e122 (patch)
treea0798eb20b4e1187e6fa7a1017570b27483657e2 /lib/chef/knife/cookbook_site_share.rb
parent3d628b012e8193b168821db6468ba8d4e6f8cc33 (diff)
downloadchef-2a52b0208a4f22ff2eed04da980d9c32c175e122.tar.gz
Add a deprecation warning to knife cookbook sitedeprecate_knife_cookbook_site
We'll want to backport this to Chef 14 as well. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/knife/cookbook_site_share.rb')
-rw-r--r--lib/chef/knife/cookbook_site_share.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb
index 1cc0c8a017..6fe4bbb520 100644
--- a/lib/chef/knife/cookbook_site_share.rb
+++ b/lib/chef/knife/cookbook_site_share.rb
@@ -1,7 +1,7 @@
#
# Author:: Nuo Yan (<nuo@chef.io>)
# Author:: Tim Hinderliter (<tim@chef.io>)
-# Copyright:: Copyright 2010-2016, Chef Software Inc.
+# Copyright:: Copyright 2010-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,6 +31,11 @@ class Chef
banner "knife cookbook site share COOKBOOK [CATEGORY] (options)"
category "deprecated"
+ def run
+ Chef::Log.warn("knife cookbook site share has been deprecated in favor of knife supermarket share. In Chef 16 (April 2020) this will result in an error!")
+ super
+ end
+
end
end
end