Sha256: c7ded2f5ca11d1d8294815268112789c40d8c207b736469ebc32922c918ce090

Contents?: true

Size: 535 Bytes

Versions: 39

Compression:

Stored size: 535 Bytes

Contents

module Fog
  module Baremetal
    class OpenStack
      class Real
        def delete_node(node_uuid)
          data = {:node_ident => node_uuid}
          request(
            :body    => Fog::JSON.encode(data),
            :expects => [200, 204],
            :method  => 'DELETE',
            :path    => 'nodes'
          )
        end
      end

      class Mock
        def delete_node(_node_uuid)
          response = Excon::Response.new
          response.status = 200
          response
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

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