Sha256: a7d3c45f24bfbfabaf1ee47a8ade6844225ea7b487ea3a808a7dc9f64c15d347
Contents?: true
Size: 700 Bytes
Versions: 41
Compression:
Stored size: 700 Bytes
Contents
require 'fog/core/collection' require 'fog/rackspace/models/load_balancers/node' module Fog module Rackspace class LoadBalancers class Nodes < Fog::Collection model Fog::Rackspace::LoadBalancers::Node attr_accessor :load_balancer def all requires :load_balancer data = connection.list_nodes(load_balancer.id).body['nodes'] load(data) end def get(node_id) requires :load_balancer if node = connection.get_node(load_balancer.id, node_id).body['node'] new(node) end rescue Fog::Rackspace::LoadBalancers::NotFound nil end end end end end
Version data entries
41 entries across 41 versions & 13 rubygems