mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
f4955dc207
- Scaling groups - Configuration (group configuration and launch configuration) - Scaling policies - Webhooks Work remaining includes: - Mock request classes - Unit test coverage
26 lines
No EOL
520 B
Ruby
26 lines
No EOL
520 B
Ruby
require 'fog/core/model'
|
|
|
|
module Fog
|
|
module Rackspace
|
|
class AutoScale
|
|
class LaunchConfig < Fog::Model
|
|
|
|
attribute :group
|
|
attribute :type
|
|
attribute :args
|
|
|
|
def update
|
|
|
|
options = {}
|
|
options['type'] = type unless type.nil?
|
|
options['args'] = args unless args.nil?
|
|
|
|
data = service.update_launch_config(group.id, options)
|
|
merge_attributes(data.body['launchConfiguration'])
|
|
true
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end |