Sha256: 43e0167a4ad56014f18c1b0208d706d08535ed19d2811f7752e6da33ec5a8c70
Contents?: true
Size: 604 Bytes
Versions: 36
Compression:
Stored size: 604 Bytes
Contents
module Fog module Compute class Joyent class Mock def get_key(keyid) if key = self.data[:keys][keyid] response = Excon::Response.new response.status = 200 response.body = key response else raise Excon::Errors::NotFound end end end class Real def get_key(keyid) request( :method => "GET", :path => "/my/keys/#{keyid}", :expects => 200, :idempotent => true ) end end end end end
Version data entries
36 entries across 34 versions & 6 rubygems