lib/buildbox/cli.rb in buildbox-0.6.1 vs lib/buildbox/cli.rb in buildbox-0.6.2
- old
+ new
@@ -58,10 +58,10 @@
exit 1
end
access_token = @argv.first
new_access_tokens = Buildbox.config.agent_access_tokens + [access_token]
- Buildbox.config.update(:agent_access_tokens => agent_access_tokens.uniq)
+ Buildbox.config.update(:agent_access_tokens => new_access_tokens.uniq)
puts "Successfully added agent access token"
puts "You can now start the agent with: buildbox agent:start."
puts "If the agent is already running, you'll have to restart it for the new changes to take effect"
end