vagrant/plugins/providers/hyperv/action/delete_vm.rb

18 lines
332 B
Ruby
Raw Normal View History

2014-02-16 19:42:20 +00:00
module VagrantPlugins
module HyperV
module Action
class DeleteVM
def initialize(app, env)
@app = app
end
def call(env)
env[:ui].info("Deleting the machine...")
env[:machine].provider.driver.delete_vm
2014-02-16 19:42:20 +00:00
@app.call(env)
end
end
end
end
end