Sha256: 9d91c520aee98cfa39503f0f1234579b1cda377cb6925e797d4a94d8947a7597
Contents?: true
Size: 809 Bytes
Versions: 43
Compression:
Stored size: 809 Bytes
Contents
module Fog module Compute class Linode class Real # Get available stack scripts # # ==== Parameters # * scriptId<~Integer>: id to limit results to # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # TODO: docs def stackscript_list(script_id=nil) options = {} if script_id options.merge!(:stackScriptID => script_id) end result = request( :expects => 200, :method => 'GET', :query => { :api_action => 'stackscript.list' }.merge!(options) ) result.body['DATA'].each { |r| r['DISTRIBUTIONIDLIST'] = r['DISTRIBUTIONIDLIST'].to_s } result end end end end end
Version data entries
43 entries across 41 versions & 6 rubygems