Sha256: 052b1b2664bfea70b754693b0b2a8d2171b4dd99ca8f742349e1f8616d5be2b1

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real
        basic_request :get_detached_disk
      end

      class Mock
        def get_detached_disk(uri)
          detached_disk_id = id_from_uri(uri)
          detached_disk    = self.data[:detached_disks][detached_disk_id]

          if detached_disk
            response(:body => Fog::Ecloud.slice(detached_disk, :id, :compute_pool_id))
          else response(:status => 404) # ?
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-1.9.0 lib/fog/ecloud/requests/compute/get_detached_disk.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/ecloud/requests/compute/get_detached_disk.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/ecloud/requests/compute/get_detached_disk.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/ecloud/requests/compute/get_detached_disk.rb