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)
|
2014-02-26 19:57:17 +00:00
|
|
|
env[:ui].info("Deleting the machine...")
|
2014-03-06 16:51:07 +00:00
|
|
|
env[:machine].provider.driver.delete_vm
|
2014-02-16 19:42:20 +00:00
|
|
|
@app.call(env)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|