Class: Mrsk::Commands::Auditor

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

Constant Summary

Constants inherited from Base

Base::MAX_LOG_SIZE

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



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

def record(line)
  append \
    [ :echo, tagged_line(line) ],
    audit_log_file
end

#revealObject



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

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