Mangrullo::Config
Constants
DOCOPT = "Mangrullo - Docker container update automation tool\n\nUsage:\n mangrullo [--interval=<seconds>] [--allow-major] [--socket=<path>]\n [--log-level=<level>] [--once] [--dry-run] [<container-name>...]\n [--help] [--version]\n\nOptions:\n --interval=<seconds> Check interval in seconds [default: #{Mangrullo::Constants::Config::DEFAULT_INTERVAL}]\n --allow-major Allow major version upgrades\n --socket=<path> Docker socket path [default: #{Mangrullo::Constants::Docker::DEFAULT_SOCKET_PATH}]\n --log-level=<level> Log level (debug, info, warn, error) [default: #{Mangrullo::Constants::Config::DEFAULT_LOG_LEVEL}]\n --once Run once and exit\n --dry-run Show what would be updated without actually updating\n --help Show this help message\n --version Show version information\n\nArguments:\n <container-name> Specific container names to check (if not specified, checks all containers)"
Constructors
from_env
Sourcenew(interval : Int32 = Mangrullo::Constants::Config::DEFAULT_INTERVAL, allow_major_upgrade : Bool = false, docker_socket_path : String = Mangrullo::Constants::Docker::DEFAULT_SOCKET_PATH, log_level : String = Mangrullo::Constants::Config::DEFAULT_LOG_LEVEL, run_once : Bool = false, dry_run : Bool = false, container_names : Array(String) = [] of String)
SourceInstance methods
allow_major_upgrade?
Sourcecontainer_names
Sourcedocker_socket_path
Sourcedry_run?
Sourceinterval
Sourcelog_level
Sourcerun_once?
Sourcesetup_logging
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
validate!
Source