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:
commit
5884561f44
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue