lib/invoker/cli.rb in invoker-1.5.1 vs lib/invoker/cli.rb in invoker-1.5.3

- old
+ new

@@ -63,9 +63,14 @@ def tail(*names) tailer = Invoker::CLI::Tail.new(names) tailer.run end + desc "log process1", "Get log of particular process" + def log(process_name) + system("egrep -a '^#{process_name}' #{Invoker.daemon.log_file}") + end + desc "reload process", "Reload a process managed by Invoker" option :signal, banner: "Signal to send for killing the process, default is SIGINT", aliases: [:s] def reload(name)