Sha256: 2a7f9c6204d90faf9f9ad37c4b27ce5c3bc94a369764f25d4279c5c76dfb862f

Contents?: true

Size: 728 Bytes

Versions: 17

Compression:

Stored size: 728 Bytes

Contents

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Real
          basic_request :delete_internet_service, 200, 'DELETE', {}, ""
        end

        class Mock

          def delete_internet_service(service_uri)

            deleted = false
            if ip = mock_ip_from_service_url(service_uri)
              if service = ip[:services].detect { |service| service[:href] == service_uri }
                ip[:services].delete(service)
                deleted = true
              end
            end

            if deleted
              mock_it 200, '', { }
            else
              mock_error 200, "401 Unauthorized"
            end
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fog-0.3.16 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.15 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.14 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.13 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.12 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.11 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.10 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.9 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.8 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.7 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.6 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.5 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.4 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.3 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.2 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.1 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb
fog-0.3.0 lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb