Sha256: 6e6a52bbf9e319a8d611d3eabce9cc1987b4fe4816aa834fbfeb7192957ff96e
Contents?: true
Size: 658 Bytes
Versions: 8
Compression:
Stored size: 658 Bytes
Contents
class Kamal::Commands::Auditor < Kamal::Commands::Base attr_reader :details def initialize(config, **details) super(config) @details = details end # Runs remotely def record(line, **details) append \ [ :echo, audit_tags(**details).except(:version, :service_version, :service).to_s, line ], audit_log_file end def reveal [ :tail, "-n", 50, audit_log_file ] end private def audit_log_file file = [ config.service, config.destination, "audit.log" ].compact.join("-") File.join(config.run_directory, file) end def audit_tags(**details) tags(**self.details, **details) end end
Version data entries
8 entries across 8 versions & 1 rubygems