1
0
Fork 0
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:
George Scott 2012-05-08 18:26:05 -07:00
parent 6d1544037c
commit 3e9b9b306a

View file

@ -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