Sha256: 4dace42d746037df3a5d2266ac210687335eb93505ba9cc060f54768cbcf71ae
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 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).to_s, line ], audit_log_file end def reveal [ :tail, "-n", 50, audit_log_file ] end private def audit_log_file [ "kamal", config.service, config.destination, "audit.log" ].compact.join("-") end def audit_tags(**details) tags(**self.details, **details) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kamal-0.16.1 | lib/kamal/commands/auditor.rb |
kamal-0.16.0 | lib/kamal/commands/auditor.rb |