class Falcore::Aggregator
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/falcore/aggregator.rb, line 26 def initialize(config) @config = config end
Public Instance Methods
run()
click to toggle source
# File lib/falcore/aggregator.rb, line 30 def run hash = Fetcher.get("#{config.jenkins.endpoint}/computer/api/json") master = Node::Master.new(hash['computer'][0]) slaves = hash['computer'][1..-1].map do |slave| Node::Slave.new(master, slave) end master end