enum

Fluxion::Distribution

Inherits Enum < Comparable < Value < Object

Distributions Fluxion knows how to bootstrap. The stable jobs/steps schema calls this os.type; WorkstationProfile manifests call it spec.target.os.distribution and additionally accept ubuntu.

Constants

Fedora = 0
Arch = 1
OpenSuse = 2
Debian = 3
Ubuntu = 4

Class methods

from_config?(value : String | Nil) : self | Nil

Parses a config or /etc/os-release value. Returns nil rather than raising so callers can attach the offending config path to the error.

Source

Instance methods

arch?

Returns true if this enum value equals Arch

Source
config_name

The config spelling, which is also what error messages and JSON output print. OpenSuse is opensuse, not open_suse.

Source
debian?

Returns true if this enum value equals Debian

Source
family
Source
fedora?

Returns true if this enum value equals Fedora

Source
open_suse?

Returns true if this enum value equals OpenSuse

Source
package_managers

The package manager a profile is expected to use on this distribution. validate reports a mismatch, because installing with the wrong manager fails late and confusingly rather than at parse time.

Source
to_s(io : IO) : Nil

Appends a String representation of this enum member to the given io.

See also: to_s.

Source
ubuntu?

Returns true if this enum value equals Ubuntu

Source