2013-08-20 09:29:03 -04:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Rackspace
|
|
|
|
class AutoScale
|
2013-08-28 07:49:03 -04:00
|
|
|
class LaunchConfig < Fog::Model
|
2013-08-20 09:29:03 -04:00
|
|
|
|
2013-08-28 07:49:03 -04:00
|
|
|
attribute :group
|
2013-08-20 09:29:03 -04:00
|
|
|
attribute :type
|
|
|
|
attribute :args
|
|
|
|
|
|
|
|
def update
|
2013-08-28 07:49:03 -04:00
|
|
|
|
|
|
|
options = {}
|
|
|
|
options['type'] = type unless type.nil?
|
|
|
|
options['args'] = args unless args.nil?
|
2013-08-20 09:29:03 -04:00
|
|
|
|
2013-08-28 07:49:03 -04:00
|
|
|
data = service.update_launch_config(group.id, options)
|
2013-08-20 09:29:03 -04:00
|
|
|
merge_attributes(data.body['launchConfiguration'])
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|