Sha256: 2b871848989a080bd1bcfa166024f217cfbaf8abac9daa6d995c95d8591b712b

Contents?: true

Size: 592 Bytes

Versions: 11

Compression:

Stored size: 592 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

11 entries across 11 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/requests/compute/list_ssh_keys.rb