struct

Fluxion::Registry::Entry

Inherits Struct < Value < Object

One configuration a registry offers.

Constants

ID_PATTERN = /\A[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?\z/

Used as a filename when installed, so it is constrained rather than escaped: an id that needs escaping is an id that will surprise someone.

Constructors

new(id : String, path : String, name : String, description : String | Nil = nil, distributions : Array(Distribution) = [] of Distribution, tags : Array(String) = [] of String, requires : Array(String) = [] of String)
Source

Class methods

valid_id?(id : String) : Bool
Source

Instance methods

description
Source
distributions

Distributions this configuration is written for. Advisory: it drives the listing and a warning on install, not a refusal, because a profile may legitimately be run somewhere its author did not anticipate.

Source
name
Source
path

Where the profile lives inside the registry repository. Always a normalized relative path — see Manifest.parse.

Source
requires

Other entries this one expects alongside it.

Source
tags
Source
targets?(distribution : Distribution | Nil) : Bool

Whether this entry says it targets the given host.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source