class

Beryl::Apply::SudoShell

Inherits Beryl::Apply::Shell < Reference < Object

Décorateur d'escalade : enrobe un Shell pour exécuter chaque commande via sudo (NOPASSWD attendu). Utilisé quand beryl se connecte comme un user sudo-capable plutôt que root (root SSH coupé sur les hôtes durcis). Les écritures passent par un temp possédé par le user puis un sudo install (root) — l'écriture SFTP directe ne pouvant pas escalader.

Constructors

new(inner : Shell)
Source

Instance methods

exec(command : String, raise_on_error : Bool = true) : SSH::Result
Source
write_file(remote_path : String, content : String, mode : String | Nil = nil) : Nil
Source