Sha256: aaef83f2cab7b12fb35eee79beeb5a094741fe3fd6cf4148830a73b875678254

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def list_ssh_keys
          response = request(
            :expects => 200,
            :method  => 'GET',
            :path    => "/sshkey/Compute-#{@identity_domain}/"
          )
          response
        end
      end

      class Mock
        def list_ssh_keys
          response = Excon::Response.new

          sshkeys = self.data[:sshkeys].values

          response.body = {
            'result' => sshkeys
          }
          response
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb