lib/invoker/cli.rb in invoker-1.3.2 vs lib/invoker/cli.rb in invoker-1.4.0
- old
+ new
@@ -26,16 +26,16 @@
desc "uninstall", "Uninstall Invoker and all installed files"
def uninstall
Invoker::Power::Setup.uninstall
end
- desc "start CONFIG_FILE", "Start Invoker Server"
+ desc "start [CONFIG_FILE]", "Start Invoker Server"
option :port, type: :numeric, banner: "Port series to be used for starting rack servers"
option :daemon,
type: :boolean,
banner: "Daemonize the server into the background",
aliases: [:d]
- def start(file)
+ def start(file = nil)
Invoker.setup_config_location
port = options[:port] || 9000
Invoker.daemonize = options[:daemon]
Invoker.load_invoker_config(file, port)
warn_about_terminal_notifier