Sha256: c7db03953ff00d21e2619e10d8c52c1b6b5974480c5cfa07092e0a60e35e1d75
Contents?: true
Size: 750 Bytes
Versions: 28
Compression:
Stored size: 750 Bytes
Contents
module Fog module Rackspace class LoadBalancers class Real def update_node(load_balancer_id, node_id, options = {}) data = { 'node' => {} } if options.has_key? :weight data['node']['weight'] = options[:weight] end if options.has_key? :condition data['node']['condition'] = options[:condition] end #TODO - Do anything if no valid options are passed in? request( :body => MultiJson.encode(data), :expects => [200, 202], :method => 'PUT', :path => "loadbalancers/#{load_balancer_id}/nodes/#{node_id}.json" ) end end end end end
Version data entries
28 entries across 28 versions & 7 rubygems