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

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
michiels-fog-1.3.1 lib/fog/rackspace/requests/load_balancers/update_node.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
fog-1.3.1 lib/fog/rackspace/requests/load_balancers/update_node.rb
fog-1.3.0 lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
fog-1.2.0 lib/fog/rackspace/requests/load_balancers/update_node.rb
ktheory-fog-1.1.2 lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
fog-1.1.2 lib/fog/rackspace/requests/load_balancers/update_node.rb
fog_tractical-1.1.4 lib/fog/rackspace/requests/load_balancers/update_node.rb
fog_tractical-1.1.3 lib/fog/rackspace/requests/load_balancers/update_node.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_node.rb
fog-1.1.1 lib/fog/rackspace/requests/load_balancers/update_node.rb
fog-1.1.0 lib/fog/rackspace/requests/load_balancers/update_node.rb