Sha256: d17cf4ec79ce0f7a77d8dcda0edbd61106b73871c7d79545055af6947f848b8c
Contents?: true
Size: 851 Bytes
Versions: 10
Compression:
Stored size: 851 Bytes
Contents
module Fog module Compute class CloudAtCost class Real def reset(id) body = { :sid => "#{id}", :action => 'reset' } request( :expects => [200], :method => 'POST', :path => "api/v1/powerop.php", :body => body, ) end end class Mock def reset(id) response = Excon::Response.new response.status = 200 response.body = { 'server_id' => Fog::Mock.random_numbers(1).to_i, 'api' => 'v1', 'status' => 'ok', 'result' => 'successful', 'action' => 'reset', 'time' => 12312323, 'taskid' => 123123123123 } response end end end end end
Version data entries
10 entries across 8 versions & 2 rubygems