struct

AptLarder::CLI::Server::Arguments

Inherits Iterable / Enumerable / Struct / Value / Object

Starts the APT caching proxy.

Loads configuration from the file given by --config (default: apt-larder.yml in the working directory), sets up logging, then runs the Server until SIGTERM is received.

Signal handling:

  • SIGUSR1 — reopen the log file (use after log rotation)
  • SIGTERM — stop accepting connections and drain in-flight requests

Constants

SPECS = {} of String => NamedTuple(type: String, description: Tuple(String, String | ::Nil), default: String, is_required: Bool)

Constructors

new(command : Admiral::Command)

Instance methods

[](*args, **options)
[](*args, **options, &)
each(*args, **options)
each(*args, **options, &)
exists?(name : Symbol)
get(name : Symbol)
get?(name : Symbol)
inspect(io)
Source
rest
validate!(command : Admiral::Command)
value_from_spec(command : Admiral::Command, *, arg : String, type, default, is_required : Bool)
Source