Class: Mrsk::Commands::Auditor
- Defined in:
- lib/mrsk/commands/auditor.rb
Constant Summary
Constants inherited from Base
Base::DOCKER_HEALTH_LOG_FORMAT, Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(config, **details) ⇒ Auditor
constructor
A new instance of Auditor.
-
#record(line, **details) ⇒ Object
Runs remotely.
- #reveal ⇒ Object
Methods inherited from Base
#container_id_for, #run_over_ssh
Constructor Details
#initialize(config, **details) ⇒ Auditor
Returns a new instance of Auditor.
4 5 6 7 |
# File 'lib/mrsk/commands/auditor.rb', line 4 def initialize(config, **details) super(config) @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
2 3 4 |
# File 'lib/mrsk/commands/auditor.rb', line 2 def details @details end |
Instance Method Details
#record(line, **details) ⇒ Object
Runs remotely
10 11 12 13 14 |
# File 'lib/mrsk/commands/auditor.rb', line 10 def record(line, **details) append \ [ :echo, (**details).except(:version, :service_version).to_s, line ], audit_log_file end |
#reveal ⇒ Object
16 17 18 |
# File 'lib/mrsk/commands/auditor.rb', line 16 def reveal [ :tail, "-n", 50, audit_log_file ] end |