Sha256: cdf62828730c3c778c40450287872be9c5736b9cad43e8d297aeeb63565a2e0f

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

require 'fog/core/collection'

module Fog
  module Compute
  	class OracleCloud
	    class SshKeys < Fog::Collection

	    	model Fog::Compute::OracleCloud::SshKey
				
 				def get(name)
          data = service.get_ssh_key(name).body
          new(data)
        end

				def all
					data = service.list_ssh_keys().body['result']
					load(data)
				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/models/compute/ssh_keys.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/ssh_keys.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/ssh_keys.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/ssh_keys.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/models/compute/ssh_keys.rb