summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-05-30 20:31:22 -0700
committerTim Smith <tsmith@chef.io>2018-05-30 20:31:22 -0700
commit93786933a816ade48682b4256e7f14bfea016c2c (patch)
tree3f59c2c9d14aba945ca2c4f9be8b9aed4c0b19e7
parent087827cc0217273f8e33ca2050b27285ff8bc127 (diff)
downloadchef-93786933a816ade48682b4256e7f14bfea016c2c.tar.gz
Better errors with uninstalled official knife plugins
Remove the mention of Chef .10 Remove terremark and bluebox Add more modern plugins Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb
index 1e436f0fe6..146f7101be 100644
--- a/lib/chef/knife.rb
+++ b/lib/chef/knife.rb
@@ -234,7 +234,7 @@ class Chef
end
end
- OFFICIAL_PLUGINS = %w{ec2 rackspace windows openstack terremark bluebox}
+ OFFICIAL_PLUGINS = %w{ec2 rackspace windows openstack azure google linode push vcenter lpar}
class << self
def list_commands(preferred_category = nil)
@@ -258,7 +258,6 @@ class Chef
caller_line.split(/:\d+/).first
end
- # :nodoc:
# Error out and print usage. probably because the arguments given by the
# user could not be resolved to a subcommand.
# @api private
@@ -273,7 +272,6 @@ class Chef
if category_commands = guess_category(args)
list_commands(category_commands)
elsif missing_plugin = ( OFFICIAL_PLUGINS.find { |plugin| plugin == args[0] } )
- ui.info("The #{missing_plugin} commands were moved to plugins in Chef 0.10")
ui.info("You can install the plugin with `(sudo) gem install knife-#{missing_plugin}`")
ui.info("Use `chef gem install knife-#{missing_plugin}` instead if using ChefDK")
else