lib/invoker/cli.rb in invoker-1.2.0 vs lib/invoker/cli.rb in invoker-1.3.0

- old
+ new

@@ -38,10 +38,11 @@ Invoker.setup_config_location port = options[:port] || 9000 Invoker.daemonize = options[:daemon] Invoker.load_invoker_config(file, port) warn_about_terminal_notifier + warn_about_old_configuration pinger = Invoker::CLI::Pinger.new(unix_socket) abort("Invoker is already running".color(:red)) if pinger.invoker_running? Invoker.commander.start_manager end @@ -113,9 +114,15 @@ 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) end + end + end + + def warn_about_old_configuration + Invoker::Power::PfMigrate.new.tap do |pf_migrator| + pf_migrator.migrate end end end end