1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/models/auto_scale/launch_config.rb
jamiehannaford f4955dc207 Initial commit for Rackspace's new Autoscale features. Most functionality is incorporated, including:
- Scaling groups
- Configuration (group configuration and launch configuration)
- Scaling policies
- Webhooks

Work remaining includes:
- Mock request classes
- Unit test coverage
2013-08-28 13:49:03 +02:00

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