Fluxion::Host
Detects what machine Fluxion is running on.
Manifest when rules match against this, never against the profile's
declared target — a profile can say it targets Fedora and still be run on
Arch, and the entries that survive should reflect the machine, not the
aspiration.
Constants
OS_RELEASE_PATH = "/etc/os-release"
SAFE_USERNAME = /\A[a-z_][a-z0-9_-]{0,31}\z/
Instance methods
architecture
SourcePATH lookup for when.commands and when.commandExists. A name
containing a separator is refused rather than resolved: when asks
whether a command is available, not whether a specific file exists.
home
SourceParses the shell-fragment format /etc/os-release uses. An unreadable or
missing file yields an empty map rather than an error: a host Fluxion
cannot identify is a host where every when rule simply fails to match,
which is the safe outcome.
root?
Source