Sha256: 320a0727f1487ba83e75a0a8e890414496bb659260f0d7432f1fe8bfeb4cca81

Contents?: true

Size: 621 Bytes

Versions: 24

Compression:

Stored size: 621 Bytes

Contents

module Fog
  module Vcloud
    module Terremark
      module Ecloud

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

        module Mock

          def delete_node(node_uri)
            node_uri = ensure_unparsed(node_uri)

            node = mock_node_from_url(node_uri)
            service = mock_service_from_node_url(node_uri)
            if node and service
              service[:nodes].delete(node)
              mock_it 200, '', {}
            else
              mock_error 200, "401 Unauthorized"
            end
          end
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.28 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.27 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.26 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.25 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.24 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
tecnh-fog-0.2.23.vpc lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.23 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.22 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.21 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.20 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.19 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.18 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.17 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.16 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.15 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.14 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.13 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.12 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb
fog-0.2.11 lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb