Just add missing message for destroy command ask N for hyper-v provider.

mitchellh/vagrant#3752
This commit is contained in:
Takekazu Omi 2014-05-12 17:00:59 +09:00
parent 98f8b51180
commit 90ca838174
2 changed files with 18 additions and 0 deletions

View File

@ -216,6 +216,7 @@ module VagrantPlugins
autoload :StopInstance, action_root.join('stop_instance')
autoload :SuspendVM, action_root.join("suspend_vm")
autoload :WaitForIPAddress, action_root.join("wait_for_ip_address")
autoload :MessageWillNotDestroy, action_root.join("message_will_not_destroy")
end
end
end

View File

@ -0,0 +1,17 @@
module VagrantPlugins
module HyperV
module Action
class MessageWillNotDestroy
def initialize(app, env)
@app = app
end
def call(env)
env[:ui].info I18n.t("vagrant.commands.destroy.will_not_destroy",
:name => env[:machine].name)
@app.call(env)
end
end
end
end
end