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:
parent
a7059e48dd
commit
457e2fd509
1 changed files with 16 additions and 0 deletions
|
@ -55,6 +55,22 @@ module Fog
|
||||||
merge_attributes(data)
|
merge_attributes(data)
|
||||||
true
|
true
|
||||||
end
|
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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue