Sha256: d601b6a6bde5d1837ac4292175fb8a73de7404da7a32ea0fa5f2adb7c4130ba4
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module Fog module Compute class Ecloud class Real basic_request :get_ssh_key end class Mock def get_ssh_key(uri) ssh_key_id = id_from_uri(uri).to_i ssh_key = self.data[:ssh_keys][ssh_key_id.to_i] if ssh_key response(:body => Fog::Ecloud.slice(ssh_key, :id, :admin_organization)) else response(:expects => 200, :status => 404) # ? end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-ecloud-0.2.0 | lib/fog/compute/ecloud/requests/get_ssh_key.rb |