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/compute/requests/linode/avail_configs.rb

19 lines
452 B
Ruby
Raw Normal View History

2011-03-01 11:10:59 -05:00
module Fog
module Linode
class Compute
class Real
def avail_configs(linode_id, config_id=nil, options={})
if config_id
options.merge!(:configid => config_id)
end
request(
:expects => 200,
:method => 'GET',
:query => { :api_action => 'linode.config.list', :linodeId => linode_id }.merge!(options)
)
end
end
end
end
end