Parent

Class/Module Index [+]

Quicksearch

Fog::Compute::Brightbox::LoadBalancer

Public Instance Methods

destroy() click to toggle source
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 49
def destroy
  requires :identity
  service.destroy_load_balancer(identity)
  true
end
ready?() click to toggle source
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 30
def ready?
  status == 'active'
end
save() click to toggle source
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 34
def save
  raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
  requires :nodes, :listeners, :healthcheck
  options = {
    :nodes => nodes,
    :listeners => listeners,
    :healthcheck => healthcheck,
    :policy => policy,
    :name => name
  }.delete_if {|k,v| v.nil? || v == "" }
  data = service.create_load_balancer(options)
  merge_attributes(data)
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.