Sha256: 41ae3bf334f8040340bcdcb4445ab80d72a11be93523a4075d74cf692aaea09d

Contents?: true

Size: 473 Bytes

Versions: 35

Compression:

Stored size: 473 Bytes

Contents

module Fog
  module Compute
    class Joyent

      class Mock
        def list_machines(options={})
          res = Excon::Response.new
          res.status = 200
          res.body = self.data[:machines].values
          res
        end
      end

      class Real
        def list_machines(options={})
          request(
            :path => "/my/machines",
            :method => "GET",
            :query => options
          )
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 15 rubygems

Version Path
hpfog-0.0.20 lib/fog/joyent/requests/compute/list_machines.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/joyent/requests/compute/list_machines.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/joyent/requests/compute/list_machines.rb
fog-nirvanix-1.8.2 lib/fog/joyent/requests/compute/list_machines.rb
fog-1.11.1 lib/fog/joyent/requests/compute/list_machines.rb
fog-1.11.0 lib/fog/joyent/requests/compute/list_machines.rb
fog-nirvanix-1.8.1 lib/fog/joyent/requests/compute/list_machines.rb
fog-1.10.1 lib/fog/joyent/requests/compute/list_machines.rb
fog-parser-fix-1.6.1 lib/fog/joyent/requests/compute/list_machines.rb
fog-test-again-1.6.0 lib/fog/joyent/requests/compute/list_machines.rb
fog-test-me-1.10.0 lib/fog/joyent/requests/compute/list_machines.rb
fog-parser-fix-1.6.0 lib/fog/joyent/requests/compute/list_machines.rb
fog-1.10.0 lib/fog/joyent/requests/compute/list_machines.rb
fog-1.9.0 lib/fog/joyent/requests/compute/list_machines.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/joyent/requests/compute/list_machines.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/joyent/requests/compute/list_machines.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/joyent/requests/compute/list_machines.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/joyent/requests/compute/list_machines.rb
fog-sgonyea-1.8.1 lib/fog/joyent/requests/compute/list_machines.rb
fog-1.8.0 lib/fog/joyent/requests/compute/list_machines.rb