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

[aws|beanstalk] Added modify method for template.

This commit is contained in:
George Scott 2012-04-05 10:22:19 -07:00
parent a7059e48dd
commit 457e2fd509

View file

@ -55,6 +55,22 @@ module Fog
merge_attributes(data)
true
end
def modify(new_attributes)
requires :name, :application_name
options = {
'ApplicationName' => application_name,
'Description' => new_attributes[:description],
'OptionSettings' => new_attributes[:option_settings],
'TemplateName' => name
}
options.delete_if {|key, value| value.nil?}
data = connection.update_configuration_template(options).body['UpdateConfigurationTemplateResult']
merge_attributes(data)
true
end
end
end