Sha256: 4068d38bfd828b913833c9b10e6f4e23c996ff82240a5e2853579fa2b06c1ec0

Contents?: true

Size: 642 Bytes

Versions: 8

Compression:

Stored size: 642 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class Real

        def add_nodes_load_balancer(identifier, options = {})
          return nil if identifier.nil? || identifier == ""
          request(
            :expects  => [202],
            :method   => 'POST',
            :path     => "/1.0/load_balancers/#{identifier}/add_nodes",
            :headers  => {"Content-Type" => "application/json"},
            :body     => options.to_json
          )
        end

      end

      class Mock

        def add_nodes_load_balancer(identifier, options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
fog-0.5.0 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
fog-0.4.1 lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb
fog-0.4.0 lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb