Sha256: cfd0e4145a01c4581eb13bda5c515fa6bf200e75d11a01d0e83eee91678b196c

Contents?: true

Size: 587 Bytes

Versions: 19

Compression:

Stored size: 587 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        def get_aggregate(uuid)
          request(
            :expects => [200],
            :method  => 'GET',
            :path    => "os-aggregates/#{uuid}"
          )
        end
      end

      class Mock
        def get_aggregate(uuid)
          response = Excon::Response.new
          response.status = 2040
          response.body = {'aggregate' => self.data[:aggregates].first.merge({
            "hosts" => []})}

          response
        end
      end # mock
    end # openstack
  end # compute
end # fog

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-1.37.0 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-1.36.0 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-1.35.0 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-2.0.0.pre.0 lib/fog/openstack/requests/compute/get_aggregate.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/requests/compute/get_aggregate.rb
fog-1.34.0 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-1.33.0 lib/fog/openstack/requests/compute/get_aggregate.rb
fog-1.32.0 lib/fog/openstack/requests/compute/get_aggregate.rb