Sha256: fdb0e27a12e523c8c9a56b2846baf0b7e1202308f373df056ba9aaa2fb4a4fa3

Contents?: true

Size: 418 Bytes

Versions: 86

Compression:

Stored size: 418 Bytes

Contents

module Fog
  module Compute
    class Joyent

      class Mock
        def list_datasets
          res = Excon::Response.new
          res.status = 200
          res.body = self.data[:datasets].values
          res
        end
      end

      class Real
        def list_datasets
          request(
            :method => "GET",
            :path => "/my/datasets"
          )
        end
      end
    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_datasets.rb
fog-test-me-1.10.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-parser-fix-1.6.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-1.10.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-1.9.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/joyent/requests/compute/list_datasets.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/joyent/requests/compute/list_datasets.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/joyent/requests/compute/list_datasets.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/joyent/requests/compute/list_datasets.rb
fog-sgonyea-1.8.1 lib/fog/joyent/requests/compute/list_datasets.rb
fog-1.8.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/joyent/requests/compute/list_datasets.rb
fog-1.7.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-1.6.0 lib/fog/joyent/requests/compute/list_datasets.rb
fog-1.5.0 lib/fog/joyent/requests/compute/list_datasets.rb
rackspace-fog-1.4.2 lib/rackspace-fog/joyent/requests/compute/list_datasets.rb
fog-1.4.0 lib/fog/joyent/requests/compute/list_datasets.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/joyent/requests/compute/list_datasets.rb
michiels-fog-1.3.1 lib/fog/joyent/requests/compute/list_datasets.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/joyent/requests/compute/list_datasets.rb