Sha256: 484d49ae5b3fbb45921185caee426e4257ab13ce554cb53cfc81a182298a9425

Contents?: true

Size: 475 Bytes

Versions: 7

Compression:

Stored size: 475 Bytes

Contents

module Fog
  module Ecloud
    class Compute

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

      class Mock

        def delete_node(node_uri)
          if node = mock_data.public_ip_internet_service_node_from_href(ensure_unparsed(node_uri))
            node._parent.items.delete(node)
            mock_it 200, '', {}
          else
            mock_error 200, "401 Unauthorized"
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/requests/ecloud/delete_node.rb
fog-0.8.1 lib/fog/compute/requests/ecloud/delete_node.rb
fog-0.8.0 lib/fog/compute/requests/ecloud/delete_node.rb
fog-0.7.2 lib/fog/compute/requests/ecloud/delete_node.rb
fog-0.7.1 lib/fog/compute/requests/ecloud/delete_node.rb
fog-0.7.0 lib/fog/compute/requests/ecloud/delete_node.rb
fog-0.6.0 lib/fog/compute/requests/ecloud/delete_node.rb