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

force_detach in volume model

This commit is contained in:
joewilliams 2010-11-01 12:40:03 -07:00 committed by geemus
parent d9ff6e3a71
commit 4b2b6ccef1

View file

@ -91,6 +91,16 @@ module Fog
end
end
def force_detach
@server = nil
@server_id = nil
unless new_record?
connection.detach_volume(@id, 'Force' => true)
reload
end
end
end
end