bin/dokku in dokku-installer-cli-0.0.5 vs bin/dokku in dokku-installer-cli-0.0.6

- old
+ new

@@ -38,16 +38,21 @@ desc "logs [-t]", "Show the last logs for the application (-t follows)" def logs(*args) run_command "logs #{app_name} #{args.join(' ')}" end + desc "open", "Open the application in your default browser" + def open + exec("open http://#{app_name}.#{domain}") + end + desc "restart", "Restart the application" def restart(*args) run_command "restart #{app_name}" end - desc "run <cmd>", "Run a command in the environment of an application" + desc "run <cmd>", "Run a command in the environment of the application" def walk(*args) run_command "run #{app_name} #{args.join(' ')}" end desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)" @@ -68,10 +73,15 @@ puts "Running #{dokku_command}..." exec(dokku_command) end - desc "version", "Print dokku-installer-cli's version" + desc "url", "Show the URL for the application" + def url + puts "http://#{app_name}.#{domain}" + end + + desc "version", "Show dokku-installer-cli's version" def version puts "Dokku Installer CLI #{DokkuInstaller::VERSION}" end def help(method = nil)