module

Mangrullo::ContainerStatus

Container status classification and display utilities

Class methods

get_cli_status(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : String

Get status text for CLI display

Source
get_css_class(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : String | Nil

Get status CSS class for web display

Source
get_reason(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : String | Nil

Get status reason for detailed information

Source
get_status(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : StatusInfo

Get status information for a container

Source
has_error?(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : Bool

Check if a container has an error

Source
needs_update?(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : Bool

Check if a container needs an update

Source
up_to_date?(container : ContainerInfo, needs_update : Bool | Nil, error : String | Nil = nil) : Bool

Check if a container is up to date

Source

Nested types