Sha256: 44ff54ef3e03fe3fa6db857737e0d6e411e907d30d29d5165aa51fdd6336dc2d

Contents?: true

Size: 459 Bytes

Versions: 86

Compression:

Stored size: 459 Bytes

Contents

module Fog
  module Compute
    class Joyent
      class Mock
        def list_keys
          response = Excon::Response.new
          response.status = 200
          response.body = self.data[:keys].values
          response
        end
      end

      class Real
        def list_keys
          request(
            :expects => 200,
            :method => :'GET',
            :path => '/my/keys'
          )
        end
      end # Real

    end
  end
end

Version data entries

86 entries across 86 versions & 16 rubygems

Version Path
fog-test-again-1.6.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-test-me-1.10.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-parser-fix-1.6.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-1.10.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-1.9.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/joyent/requests/compute/list_keys.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/joyent/requests/compute/list_keys.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/joyent/requests/compute/list_keys.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/joyent/requests/compute/list_keys.rb
fog-sgonyea-1.8.1 lib/fog/joyent/requests/compute/list_keys.rb
fog-1.8.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/joyent/requests/compute/list_keys.rb
fog-1.7.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-1.6.0 lib/fog/joyent/requests/compute/list_keys.rb
fog-1.5.0 lib/fog/joyent/requests/compute/list_keys.rb
rackspace-fog-1.4.2 lib/rackspace-fog/joyent/requests/compute/list_keys.rb
fog-1.4.0 lib/fog/joyent/requests/compute/list_keys.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/joyent/requests/compute/list_keys.rb
michiels-fog-1.3.1 lib/fog/joyent/requests/compute/list_keys.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/joyent/requests/compute/list_keys.rb