lib/veewee/provider/vmfusion/box/destroy.rb in veewee-0.3.0.alpha9 vs lib/veewee/provider/vmfusion/box/destroy.rb in veewee-0.3.0.beta1
- old
+ new
@@ -7,10 +7,10 @@
unless raw.exists?
raise Veewee::Error, "Error:: You tried to destroy a non-existing box '#{name}'"
end
raw.halt if raw.state=="running"
- ::Fission::VM.delete(name)
+ ::Fission::VM.new(name).delete
# remove it from memory
@raw=nil
end
end
end