Sha256: 81aa5589b361e3d7e9b2574e5d6a370d94ecfb3c342d3bf34160429fa406e5bb

Contents?: true

Size: 975 Bytes

Versions: 86

Compression:

Stored size: 975 Bytes

Contents

module Fog
  module Compute
    class Joyent

      class Mock
        def list_packages
          response = Excon::Response.new()
          response.status = 200
          response.body = self.data[:packages].values
          response
        end
      end

      class Real
        # Lists all the packages available to the authenticated user
        # ==== Returns
        # Exon::Response<Array>
        # * name<~String> The "friendly name for this package
        # * memory<~Number> How much memory will by available (in Mb)
        # * disk<~Number> How much disk space will be available (in Gb)
        # * swap<~Number> How much swap memory will be available (in Mb)
        # * default<~Boolean> Whether this is the default package in this datacenter"
        #
        def list_packages
          request(
            :path => "/my/packages",
            :method => "GET",
            :expects => 200
          )
        end
      end # Real

    end

  end
end

Version data entries

86 entries across 86 versions & 16 rubygems

Version Path
fog-1.15.0 lib/fog/joyent/requests/compute/list_packages.rb
gapinc-fog-1.14.0 lib/fog/joyent/requests/compute/list_packages.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.14.0 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.13.0 lib/fog/joyent/requests/compute/list_packages.rb
gapinc-fog-1.12.1.2 lib/fog/joyent/requests/compute/list_packages.rb
gapinc-fog-1.12.1.1 lib/fog/joyent/requests/compute/list_packages.rb
gapinc-fog-1.12.1a lib/fog/joyent/requests/compute/list_packages.rb
gapinc-fog-1.12.1 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.12.1 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.12.0 lib/fog/joyent/requests/compute/list_packages.rb
hpfog-0.0.20 lib/fog/joyent/requests/compute/list_packages.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/joyent/requests/compute/list_packages.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/joyent/requests/compute/list_packages.rb
fog-nirvanix-1.8.2 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.11.1 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.11.0 lib/fog/joyent/requests/compute/list_packages.rb
fog-nirvanix-1.8.1 lib/fog/joyent/requests/compute/list_packages.rb
fog-1.10.1 lib/fog/joyent/requests/compute/list_packages.rb
fog-parser-fix-1.6.1 lib/fog/joyent/requests/compute/list_packages.rb