class

AptLarder::CLI::Server

Inherits Admiral::Command / Reference / 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

HELP = {"description" => ""}

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

Class methods

description

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
Source
run(*args, **params)

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
Source

Instance methods

__rescue_from___Admiral__Error(e)

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
arguments

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
Source
flags

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
Source
help
run

The run command.

Source
sub(command, *args, **params)

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
Source

Nested types