Class: Tweemux::Action::Log

Inherits:
Tweemux::Action show all
Defined in:
lib/tweemux/action/log.rb

Instance Method Summary collapse

Methods inherited from Tweemux::Action

#call, colorize_tmux_command, explain, #explained_run, explained_run, #explained_run_as, explained_run_as, highlight_command, highlight_explanation, #initialize, load_all!, pseudo_restarts, system_or_raise, tmux_S, #tmux_S

Constructor Details

This class inherits a constructor from Tweemux::Action

Instance Method Details

#run(_) ⇒ Object



2
3
4
5
# File 'lib/tweemux/action/log.rb', line 2

def run _
  explained_run %w(sudo tail -f /var/log/messages /var/log/secure.log),
    'Watch the logs for incoming connections ("messages" == Linux, "secure.log" == OS X)'
end