struct

Fluxion::Matcher

Inherits Struct < Value < Object

A single when field's expected value(s).

The manifest schema lets a matcher be written three ways — distribution: fedora, distribution: [fedora, arch], and distribution: {oneOf: [...]} — which all mean "any of these". They are normalized here so evaluation has one shape to reason about.

Constructors

new(values : Enumerable(String))
Source
of(value : String) : self
Source

Instance methods

empty?
Source
matches?(actual : String | Nil) : Bool

An unknown host fact never matches. Fluxion cannot detect a codename on every distribution, and guessing "probably fine" would run Debian-only work on a host it failed to identify.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
values
Source