lib/app-rb/cli.rb in app-rb-0.4.0 vs lib/app-rb/cli.rb in app-rb-0.5.0
- old
+ new
@@ -22,16 +22,20 @@
if command == "deploy" || command == "d"
Command.new(config).deploy(@args[2])
elsif command == "status" || command == "s"
Command.new(config).status
- elsif command == "restart"
- Command.new(config).restart
+ elsif command == "redeploy"
+ Command.new(config).redeploy
elsif command == "clean"
Command.new(config).clean
elsif command == "stop"
Command.new(config).stop
+ elsif command == "run" || command == "r"
+ Command.new(config).run(@args[2..-1].join(" "))
+ elsif command == "cd"
+ Command.new(config).cd
else
puts "FATAL: unknown command '#{command}'"
exit -1
end
end
@@ -42,11 +46,18 @@
puts "Just deploy your apps with docker and consul. Nothing else."
puts "Version: #{AppRb::VERSION}"
puts ""
puts " app-rb <yml> <command>"
puts ""
+ puts "Usage:"
puts " deploy [hash] - deploy new version of app"
puts " status - status of app"
puts " stop - stop app"
+ puts " run <cmd> [args] - one time command"
+ puts " cd - go to run node"
+ puts ""
+ puts "Advanced:"
+ puts " redeploy - redeploy app"
+ puts " clean - stop and remove not current containers"
end
end
end