Sha256: 106c311524cf981c52ebcf22c3e51e4b95a8fd4f7a8caf7fc555516e66316398

Contents?: true

Size: 450 Bytes

Versions: 13

Compression:

Stored size: 450 Bytes

Contents

module Fog
  module Rackspace
    class LoadBalancers
      class Real
        def delete_nodes(load_balancer_id, *node_ids)
          query_string = node_ids.collect { |node_id| "id=#{node_id}" }.join('&')
          puts query_string
          request(
            :expects => [200, 202],
            :path => "loadbalancers/#{load_balancer_id}/nodes?#{node_ids}",
            :method => 'DELETE'
          )
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
fog-1.1.1 lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
fog-1.1.0 lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
tag-fog-1.0.1 lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
fog-1.0.0 lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
fog-0.11.0 lib/fog/rackspace/requests/load_balancers/delete_nodes.rb