vaguerent/plugins/providers/virtualbox/action/message_will_not_destroy.rb
Mitchell Hashimoto 1e997f87d7 Clean up the actions a bit, move logic into actual middleware.
This is a good idea because in the future it will allow plugins to
properly override these behaviors.
2012-07-28 19:58:10 -07:00

18 lines
391 B
Ruby

module VagrantPlugins
module ProviderVirtualBox
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