Sha256: 0f5d0fcb2d347d2dc32101ed8c09790055d931cee77bcd10c143693c30d14f82

Contents?: true

Size: 556 Bytes

Versions: 34

Compression:

Stored size: 556 Bytes

Contents

module Fog
  module SharedFileSystem
    class OpenStack
      class Real
        def get_share(id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "shares/#{id}"
          )
        end
      end

      class Mock
        def get_share(id)
          response = Excon::Response.new
          response.status = 200
          share = data[:share_updated] || data[:shares_detail].first
          share['id'] = id
          response.body = share
          response
        end
      end
    end
  end
end

Version data entries

34 entries across 32 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.10 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.1.30 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.1.29 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.9 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.1.28 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.8 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.7 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.6 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.5 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.4 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.3 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.2 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.3.0 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.2.4 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.2.3 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.2.2 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.2.1 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-openstack-0.2.0 lib/fog/shared_file_system/openstack/requests/get_share.rb
fog-zj-0.1.28 lib/fog/shared_file_system/openstack/requests/get_share.rb