class

Meridian::Commands::Accessory

Inherits Meridian::Commands::Base < Reference < Object

Constructors

new(config : Config::DeployConfig, ssh_executor : SSH::Executor = SSH::Executor.new, quadlet_generator : Quadlet::Generator | Nil = nil, output : IO = STDOUT, error : IO = STDERR, audit_logger : Meridian::Audit::Logger | Nil = nil, input : IO = STDIN)
Source

Instance methods

logs(name : String) : Int32
Source
remove(name : String, force : Bool = false) : Bool

Removes Meridian's unit definition for the accessory. Deliberately conservative about everything that outlives it: named volumes, images, and the shared network are left alone, because other services may still depend on them and proving otherwise is not cheap.

Source
start(name : String) : Nil

Idempotent: any service declaring this accessory can run it and arrive at the same state. Everything that could refuse is decided before the first mutation, so a conflict never leaves a half-applied accessory.

Source
stop(name : String, force : Bool = false) : Bool
Source