enum

Fluxion::ArtifactFormat

Inherits Enum < Comparable < Value < Object

Artifact shapes a compiled-binary URL may point at.

The split between locally extracted and delegated formats is deliberate: Fluxion implements tar.gz itself with hard bounds, and refuses to guess at zip and tar.xz rather than shipping two more archive parsers that handle traversal, symlinks, and decompression bombs.

Constants

PlainBinary = 0
TarGz = 1
Zip = 2
TarXz = 3

Constructors

detect(url : String) : self

Classifies by the URL's final path component. Query strings are ignored, since they never change what the bytes are.

Source

Instance methods

archive?
Source
config_name
Source
delegated?

True when the format is handled by binstaller rather than in-process.

Source
plain_binary?

Returns true if this enum value equals PlainBinary

Source
tar_gz?

Returns true if this enum value equals TarGz

Source
tar_xz?

Returns true if this enum value equals TarXz

Source
to_s(io : IO) : Nil

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

See also: to_s.

Source
zip?

Returns true if this enum value equals Zip

Source