Sha256: 2722e89262c82460bf1d738612905a859bbc1665396455da031784fa3d12bbff
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
module Fog module Linode class Compute 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.8.2 | lib/fog/compute/requests/linode/stackscript_list.rb |