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

26 lines
520 B
Ruby
Raw Normal View History

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