Sha256: eeff0279a2783f8220326e6095a53c639f0eda9039886ef9bf39a7d321d598a3
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
module Fog module Compute class OracleCloud class Real def get_ssh_key(name) if !name.start_with?("/Compute-") then # They haven't provided a well formed name, add their name in name = "/Compute-#{@identity_domain}/#{@username}/#{name}" end response = request( :expects => 200, :method => 'GET', :path => "/sshkey#{name}", :headers => { 'Content-Type' => 'application/oracle-compute-v3+json', 'Accept' => 'application/oracle-compute-v3+json' } ) response end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-oraclecloud-0.1.1 | lib/fog/oraclecloud/requests/compute/get_ssh_key.rb |