Sha256: 7d5ec65b1e4765241824a3f1526225b2cd8e22f6dddc5617fb3a53f48dd37609

Contents?: true

Size: 389 Bytes

Versions: 26

Compression:

Stored size: 389 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_from_json(r)}
      )
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
yao-0.2.12 lib/yao/resources/keypair.rb
yao-0.2.11 lib/yao/resources/keypair.rb
yao-0.2.10 lib/yao/resources/keypair.rb
yao-0.2.9 lib/yao/resources/keypair.rb
yao-0.2.8 lib/yao/resources/keypair.rb
yao-0.2.7 lib/yao/resources/keypair.rb