Method: Fog::Compute::Linode::Real#stackscript_list
- Defined in:
- lib/fog/linode/requests/compute/stackscript_list.rb
permalink #stackscript_list(script_id = nil) ⇒ Object
Get available stack scripts
Parameters
-
scriptId<~Integer>: id to limit results to
Returns
-
response<~Excon::Response>:
-
body<~Array>:
-
TODO: docs
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fog/linode/requests/compute/stackscript_list.rb', line 15 def stackscript_list(script_id=nil) = {} if script_id .merge!(:stackScriptID => script_id) end result = request( :expects => 200, :method => 'GET', :query => { :api_action => 'stackscript.list' }.merge!() ) result.body['DATA'].each { |r| r['DISTRIBUTIONIDLIST'] = r['DISTRIBUTIONIDLIST'].to_s } result end |