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