class

AptLarder::CLI

Inherits Admiral::Command::Run / Admiral::Command / Reference / Object

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7

Constants

HELP = {"description" => ""}

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7

Class methods

description

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7
Source
run(*args, **params)

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7
Source

Instance methods

__rescue_from___Admiral__Error(e)

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7
arguments

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7
Source
flags

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7
Source
help
run

The run command.

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

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7
Source
version
Source

Nested types