Sha256: 097461428c723d95b1a7bbba93f475e18c151801e0dde308b2ea4bb4c6283893

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

module Yao::Resources
  class Keypair < Base
    friendly_attributes :name, :public_key, :fingerprint

    self.service        = "compute"
    self.resource_name  = "os-keypair"
    self.resources_name = "os-keypairs"

    def self.list(query={})
      return_resources(
        resources_from_json(GET(resources_name, query).body).map{|r| resource_params(r)}
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yao-0.2.6 lib/yao/resources/keypair.rb
yao-0.2.5 lib/yao/resources/keypair.rb
yao-0.2.4 lib/yao/resources/keypair.rb
yao-0.2.2 lib/yao/resources/keypair.rb
yao-0.2.1 lib/yao/resources/keypair.rb