2010-09-08 10:56:38 -07:00
|
|
|
module Fog
|
2011-06-16 16:28:54 -07:00
|
|
|
module Compute
|
|
|
|
class Linode
|
2010-09-08 10:56:38 -07:00
|
|
|
class Real
|
2011-06-16 16:28:54 -07:00
|
|
|
|
2010-09-08 10:56:38 -07:00
|
|
|
def avail_stackscripts(options={})
|
2011-03-21 16:43:47 -04:00
|
|
|
result = request(
|
2010-09-08 10:56:38 -07:00
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:query => { :api_action => 'avail.stackscripts' }.merge!(options)
|
|
|
|
)
|
2011-03-22 10:02:47 -04:00
|
|
|
result.body['DATA'].each { |r| r['DISTRIBUTIONIDLIST'] = r['DISTRIBUTIONIDLIST'].to_s }
|
2011-03-21 16:43:47 -04:00
|
|
|
result
|
2010-09-08 10:56:38 -07:00
|
|
|
end
|
2011-06-16 16:28:54 -07:00
|
|
|
|
2010-09-08 10:56:38 -07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|