lib/buildbox/cli.rb in buildbox-0.1.1 vs lib/buildbox/cli.rb in buildbox-0.1.4

- old
+ new

@@ -49,18 +49,19 @@ puts Buildbox::VERSION exit end if command == "worker:start" - Buildbox::Worker.new(Buildbox.config.worker_access_token).start + Buildbox::Server.new.start elsif command == "worker:setup" if @argv.length == 0 puts "No token provided" exit 1 end access_token = @argv.first - Buildbox.config.update(:worker_access_token => access_token) + worker_access_tokens = Buildbox.config.worker_access_tokens + Buildbox.config.update(:worker_access_tokens => worker_access_tokens << access_token) puts "Successfully added worker access token" puts "You can now start the worker with `buildbox worker:start`" end else