class

Meridian::Commands::Check

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

Constants

DEFAULT_LOCAL_FILE_PROBE = ->(path : String) do (File.file?(path)) && (File::Info.readable?(path)) end

Must agree with what upload_file_syncs does: deploy reads the source, so a directory or a special file fails there even though it is "readable".

DEFAULT_LOCAL_IMAGE_PROBE = ->(image : String) do begin (Process.run("podman", ["image", "exists", image])).success? rescue false end end
EMPTY_ACCESSORIES = {} of String => Config::AccessoryConfig
MIN_PODMAN_MAJOR = 4
MIN_PODMAN_MINOR = 4

Constructors

new(config : Config::DeployConfig, ssh_executor : SSH::Executor = SSH::Executor.new, output : IO = STDOUT, error : IO = STDERR, audit_logger : Meridian::Audit::Logger | Nil = nil, local_image_probe : LocalImageProbe | Nil = nil, local_file_probe : LocalFileProbe | Nil = nil)
Source

Instance methods

run(targets : Array(CLI::TargetSelector::Target) | Nil = nil) : Bool
Source

Nested types