mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|beanstalk] Added swap_cnames method.
Added swap_cnames convenience method on environment model.
This commit is contained in:
parent
6d1544037c
commit
3e9b9b306a
1 changed files with 10 additions and 0 deletions
|
@ -71,6 +71,16 @@ module Fog
|
|||
reload
|
||||
end
|
||||
|
||||
def swap_cnames(source)
|
||||
requires :name
|
||||
connection.swap_environment_cnames({
|
||||
'SourceEnvironmentName' => source.name,
|
||||
'DestinationEnvironmentName' => name
|
||||
})
|
||||
source.reload
|
||||
reload
|
||||
end
|
||||
|
||||
# Return the version object for this environment
|
||||
def version
|
||||
requires :application_name, :version_label
|
||||
|
|
Loading…
Add table
Reference in a new issue