Sha256: 6d947333ba5571345ab65790afdc284357acc9178f42a02ddb659433aa2f6002
Contents?: true
Size: 905 Bytes
Versions: 32
Compression:
Stored size: 905 Bytes
Contents
module Fog module Compute class Linode class Real # api docs say LinodeID is optional, turns out its required def linode_config_update(linode_id, config_id, options={}) request( :expects => 200, :method => 'GET', :query => { :api_action => 'linode.config.update', :configId => config_id, :linodeID => linode_id }.merge!(options) ) end end class Mock def linode_config_update(linode_id, config_id, options={}) response = Excon::Response.new response.status = 200 response.body = { "ERRORARRAY" => [], "ACTION" => "linode.config.update", "DATA" => { "ConfigID" => rand(10000..99999) } } response end end end end end
Version data entries
32 entries across 30 versions & 5 rubygems