1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vmfusion|compute] fixed destroy function

This commit is contained in:
Patrick Debois 2011-09-16 15:47:20 +02:00
parent 1a576820ae
commit cb1d5919f0

View file

@ -21,6 +21,13 @@ module Fog
raise Fog::Errors::Error.new('Creating a new vm is not yet supported')
end
def clone(name)
requires :raw
::Fission::VM.clone(@raw.name,name)
return connection.servers.get(name)
end
def destroy(options={ :force => false})
requires :raw
@ -30,7 +37,7 @@ module Fog
end
end
::Fission::VM.delete target_vm
::Fission::VM.delete @raw.name
end
def start