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

[aws|rds] Server#destroy argument is optional

By default Server#destroy does not take a final
snapshot.

This makes the Server#destroy API more consistent
with other models.
This commit is contained in:
Aaron Suggs 2011-05-31 23:25:00 -04:00
parent c872eefe34
commit 3e5d48a1c5

View file

@ -45,7 +45,7 @@ module Fog
state == 'available'
end
def destroy(snapshot_identifier)
def destroy(snapshot_identifier=nil)
requires :id
connection.delete_db_instance(id, snapshot_identifier, snapshot_identifier.nil?)
true
@ -102,4 +102,4 @@ module Fog
end
end
end
end
end