lib/buildbox/server.rb in buildbox-0.3.8 vs lib/buildbox/server.rb in buildbox-0.3.9

- old
+ new

@@ -3,12 +3,12 @@ module Buildbox class Server INTERVAL = 5 def initialize(config = Buildbox.config, logger = Buildbox.logger) - @config = config - @logger = logger + @config = config + @logger = logger @supervisors = [] end def start Celluloid.logger = @logger @@ -19,10 +19,10 @@ @logger.info "Agent with access token `#{access_token}` has started." end loop do @supervisors.each do |supervisor| - supervisor.actors.first.async.work + supervisor.actors.first.async.process end wait INTERVAL end end