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

Merge pull request #1204 from mikehale/master

Add force option to auto scaling group model destroy method
This commit is contained in:
Wesley Beary 2012-10-16 08:29:24 -07:00
commit 5884561f44

View file

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