class

Wgctl::WireGuard::Runner

Inherits Reference < Object

Class methods

apply_syncconf(interface_name : String, config_path : String) : Tuple(Bool, String)

Syncs live interface using wg-quick strip and wg syncconf without dropping existing tunnels!

Source
fetch_dump(interface_name : String) : String | Nil

Runs wg show <interface> dump

Source
generate_qr_terminal(content : String) : String

Generates a terminal QR code using qrencode

Source
list_active_interfaces

Runs wg show interfaces to find active WireGuard interfaces

Source
wg_available?

Check if 'wg' binary is installed and executable

Source