Sha256: a734eafd3006d1f11b8cebc1ce8cab4962d027d3fa1aa05c920b2eb9caedf777
Contents?: true
Size: 770 Bytes
Versions: 34
Compression:
Stored size: 770 Bytes
Contents
class Kamal::Configuration::Logging delegate :optionize, :argumentize, to: Kamal::Utils include Kamal::Configuration::Validation attr_reader :logging_config def initialize(logging_config:, context: "logging") @logging_config = logging_config || {} validate! @logging_config, context: context end def driver logging_config["driver"] end def options logging_config.fetch("options", {}) end def merge(other) self.class.new logging_config: logging_config.deep_merge(other.logging_config) end def args if driver.present? || options.present? optionize({ "log-driver" => driver }.compact) + argumentize("--log-opt", options) else argumentize("--log-opt", { "max-size" => "10m" }) end end end
Version data entries
34 entries across 34 versions & 2 rubygems