Class: Mrsk::Commands::Auditor

Inherits:
Base
  • Object
show all
Defined in:
lib/mrsk/commands/auditor.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run_over_ssh

Constructor Details

This class inherits a constructor from Mrsk::Commands::Base

Instance Method Details

#record(line) ⇒ Object



5
6
7
8
9
# File 'lib/mrsk/commands/auditor.rb', line 5

def record(line)
  append \
    [ :echo, "'#{tags} #{line}'" ],
    audit_log_file
end

#revealObject



11
12
13
# File 'lib/mrsk/commands/auditor.rb', line 11

def reveal
  [ :tail, "-n", 50, audit_log_file ]
end