Inline default as with other options
This commit is contained in:
committed by
GitHub
parent
b5ccc1fa5d
commit
6a27a46e5f
@@ -12,8 +12,6 @@ class Mrsk::Configuration
|
|||||||
attr_accessor :destination
|
attr_accessor :destination
|
||||||
attr_accessor :raw_config
|
attr_accessor :raw_config
|
||||||
|
|
||||||
MAX_LOG_SIZE = "10m"
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def create_from(config_file:, destination: nil, version: nil)
|
def create_from(config_file:, destination: nil, version: nil)
|
||||||
raw_config = load_config_files(config_file, *destination_config_file(config_file, destination))
|
raw_config = load_config_files(config_file, *destination_config_file(config_file, destination))
|
||||||
@@ -128,7 +126,7 @@ class Mrsk::Configuration
|
|||||||
optionize({ "log-driver" => raw_config.logging["driver"] }.compact) +
|
optionize({ "log-driver" => raw_config.logging["driver"] }.compact) +
|
||||||
argumentize("--log-opt", raw_config.logging["options"])
|
argumentize("--log-opt", raw_config.logging["options"])
|
||||||
else
|
else
|
||||||
argumentize("--log-opt", { "max-size" => MAX_LOG_SIZE })
|
argumentize("--log-opt", { "max-size" => "10m" })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user