Sha256: 9b8d66354c3f4d72adae14d9ab15ec55e1faf4f6456b4eb9fa5d3baadc4c4abd
Contents?: true
Size: 585 Bytes
Versions: 35
Compression:
Stored size: 585 Bytes
Contents
module Fog module Compute class Joyent class Mock def get_machine(uuid) if machine = self.data[:machines][uuid] res = Excon::Response.new res.status = 200 res.body = machine res else raise Excon::Errors::NotFound, "Not Found" end end end class Real def get_machine(uuid) request( :method => "GET", :path => "/my/machines/#{uuid}", :expects => 200 ) end end end end end
Version data entries
35 entries across 35 versions & 15 rubygems