1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb

18 lines
450 B
Ruby
Raw Normal View History

2011-07-13 16:27:55 -04:00
module Fog
module Rackspace
class LoadBalancers
2011-07-13 16:27:55 -04:00
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