bin/dokku in dokku-installer-cli-0.0.1 vs bin/dokku in dokku-installer-cli-0.0.2

- old
+ new

@@ -37,54 +37,22 @@ when "domains:set" dokku_command += "domains:set #{app_name} #{args.join(' ')}" when "logs" dokku_command += "logs #{app_name} #{args.join(' ')}" when "run" - command = args.join(' ') + command = args.join(" ") dokku_command += "run #{app_name} #{command}" - puts "Running #{command}..." + else + exit end + puts "Running #{dokku_command}..." exec(dokku_command) end - # backup:export [file] Export dokku configuration files - # backup:import [file] Import dokku configuration files - # config <app> Display the config vars for an app - # config:get <app> KEY Display a config value for an app - # config:set <app> KEY1=VALUE1 [KEY2=VALUE2 ...] Set one or more config vars - # config:unset <app> KEY1 [KEY2 ...] Unset one or more config vars - # create <app> Create an app - # delete <app> Delete an application - # domains <app> Display the domains for an app - # domains:set <app> DOMAIN1 [DOMAIN2 ...] Set one or more domains - # help Print the list of commands - # logs <app> [-t] Show the last logs for an application (-t follows) - # plugins-install Install active plugins - # plugins Print active plugins - # postgres:console <db> Open a PostgreSQL console - # postgres:create <db> Create a PostgreSQL container - # postgres:delete <db> Delete specified PostgreSQL container - # postgres:dump <db> > dump_file.sql Dump database data - # postgres:info <db> Display database informations - # postgres:link <app> <db> Link an app to a PostgreSQL database - # postgres:list Display list of PostgreSQL containers - # postgres:logs <db> Display last logs from PostgreSQL container - # postgres:restore <db> < dump_file.sql Restore database data from a previous dump - # redis:create <rd> Create a Redis container - # redis:delete <rd> Delete specified Redis container - # redis:info <rd> Display container information - # redis:link <app> <rd> Link an app to a Redis container - # redis:logs <rd> Display last logs from Redis container - # run <app> <cmd> Run a command in the environment of an application - # url <app> Show the URL for an application - # version Print dokku's version + description "Command line tool for Dokku Installer" - # supplemental methods here - - # Declare command-line interface here - - # description "one line description of your app" + arg :command # # Accept flags via: # on("--flag VAL","Some flag") # options[flag] will contain VAL #