class

Wgctl::WireGuard::PackageManager

Inherits Reference < Object

Constants

OPTIONAL_TOOLS = ["qrencode"]
REQUIRED_TOOLS = ["wg", "wg-quick", "iptables"]

Class methods

core_installed?

Returns true if the core wireguard tools are present

Source
dependencies_installed?

Returns true if all required tools (and recommended qrencode) are present

Source
detect_distro

Detects Linux distribution family from /etc/os-release

Source
install_dependencies(inherit_output : Bool = true) : Tuple(Bool, String)

Automatically installs wireguard, iptables, and qrencode based on the Linux distro

Source
missing_tools

Checks which required and recommended tools are currently missing from PATH

Source
root?

Check if running as superuser (root)

Source