lib/buildbox/cli.rb in buildbox-0.2.2 vs lib/buildbox/cli.rb in buildbox-0.2.3
- old
+ new
@@ -26,14 +26,14 @@
exit
end
end
@commands['agent:setup'] = OptionParser.new do |opts|
- opts.banner = "Usage: buildbox setup:add [token]"
+ opts.banner = "Usage: buildbox agent:setup [token]"
opts.on("--help", "You're looking at it.") do
- puts @commands['setup:add']
+ puts @commands['agent:setup']
exit
end
end
@commands['version'] = OptionParser.new do |opts|
@@ -59,11 +59,11 @@
exit
end
if command == "agent:start"
Buildbox::Server.new.start
- elsif command == "setup:add"
+ elsif command == "agent:setup"
if @argv.length == 0
puts "No token provided"
exit 1
end
@@ -84,10 +84,10 @@
begin
Buildbox::API.new.authenticate(api_key)
Buildbox.config.update(:api_key => api_key)
puts "Successfully added your api_key"
- puts "You can now add agents with: buildbox setup:add [agent_token]"
+ puts "You can now add agents with: buildbox agent:setup [agent_token]"
rescue
puts "Could not authenticate your api_key"
exit 1
end
end