lib/invoker/cli.rb in invoker-1.5.4 vs lib/invoker/cli.rb in invoker-1.5.5

- old
+ new

@@ -39,20 +39,28 @@ aliases: [:d] option :nocolors, type: :boolean, banner: "Disable color in output", aliases: [:nc] + option :certificate, + type: :string, + banner: "Path to certificate" + option :private_key, + type: :string, + banner: "Path to private key" def start(file = nil) Invoker.setup_config_location port = options[:port] || 9000 Invoker.daemonize = options[:daemon] Invoker.nocolors = options[:nocolors] + Invoker.certificate = options[:certificate] + Invoker.private_key = options[:private_key] Invoker.load_invoker_config(file, port) warn_about_notification warn_about_old_configuration pinger = Invoker::CLI::Pinger.new(unix_socket) - abort("Invoker is already running".color(:red)) if pinger.invoker_running? + abort("Invoker is already running".colorize(:red)) if pinger.invoker_running? Invoker.commander.start_manager end desc "add process", "Add a program to Invoker server" def add(name) @@ -148,18 +156,18 @@ def warn_about_libnotify require "libnotify" rescue LoadError Invoker::Logger.puts "You can install libnotify gem for Invoker notifications "\ - "via system tray".color(:red) + "via system tray".colorize(:red) end def warn_about_terminal_notifier if Invoker.darwin? command_path = `which terminal-notifier` if !command_path || command_path.empty? Invoker::Logger.puts "You can enable OSX notification for processes "\ - "by installing terminal-notifier gem".color(:red) + "by installing terminal-notifier gem".colorize(:red) end end end def warn_about_old_configuration