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

add force option to auto scaling group destroy method

This commit is contained in:
Michael Hale 2012-10-12 15:46:20 -04:00
parent ff31140f54
commit 00308e8e95

View file

@ -121,9 +121,13 @@ module Fog
# self
#end
def destroy
def destroy(force=false)
requires :id
connection.delete_auto_scaling_group(id)
opts = {}
opts.merge({'ForceDelete' => true}) if force
connection.delete_auto_scaling_group(id, opts)
end
def update