summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Pop <al3xpop@gmail.com>2015-07-03 17:05:54 +0100
committerSteven Danna <steve@chef.io>2015-08-25 17:30:22 +0100
commitc2d022ba49a65c3a70d516a137156bb23de3222a (patch)
tree4626fc31cf038b7a81db95fc210f69290532f9d9
parent41d55bb75799021a3c42f547860586ee21cb2804 (diff)
downloadchef-c2d022ba49a65c3a70d516a137156bb23de3222a.tar.gz
Remove confirmation and display path to the cache on create and update
-rw-r--r--lib/chef/knife/rehash.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/rehash.rb b/lib/chef/knife/rehash.rb
index ef58a687b8..194a8002e4 100644
--- a/lib/chef/knife/rehash.rb
+++ b/lib/chef/knife/rehash.rb
@@ -25,9 +25,8 @@ class Chef
def run
if ! Chef::Knife::SubcommandLoader.autogenerated_manifest?
- ui.msg "Using knife-rehash will speed up knife's load time by caching the location of subcommands on disk"
+ ui.msg "Using knife-rehash will speed up knife's load time by caching the location of subcommands on disk."
ui.msg "However, you will need to update the cache by running `knife rehash` anytime you install a new knife plugin."
- ui.confirm "Would you like to continue?"
else
reload_plugins
end
@@ -52,6 +51,7 @@ class Chef
def write_hash(data)
File.open(Chef::Knife::SubcommandLoader.plugin_manifest_path, 'w') do |f|
f.write(Chef::JSONCompat.to_json_pretty(data))
+ ui.msg "Knife subcommands are cached in #{Chef::Knife::SubcommandLoader.plugin_manifest_path}. Delete this file to disable the caching."
end
end
end