lib/buildbox/server.rb in buildbox-0.2.1 vs lib/buildbox/server.rb in buildbox-0.2.2

- old
+ new

@@ -10,12 +10,12 @@ def start loop do @config.check @config.reload - worker_access_tokens.each do |access_token| - Buildbox::Worker.new(access_token, api).work + agent_access_tokens.each do |access_token| + Buildbox::Agent.new(access_token, api).work end @logger.info "Sleeping for #{INTERVAL} seconds" sleep INTERVAL end @@ -25,10 +25,10 @@ def api @api ||= Buildbox::API.new end - def worker_access_tokens - @config.worker_access_tokens + def agent_access_tokens + @config.agent_access_tokens end end end