Class Gem2Rpm::Distro
In: lib/gem2rpm/distro.rb
Parent: Object

Methods

Constants

FEDORA = :fedora
PLD = :pld
OPENSUSE = :opensuse
DEFAULT = :default
ROLLING_RELEASES = %w[rawhide factory tumbleweed].freeze
OsRelease = Struct.new :os, :version

Public Class methods

Returns struct with OS detected based on release files.

Distro.os_release.os contains either one of supported distributions (:fedora, :pld, :opensuse) or :default for unrecognized/unsupported distributions.

Distro.os_release.version contains version if it is possible to detect.

Provides list of release files found on the system.

Allows to override release files list.

Tries to find best suitable template for specified os and version.

[Validate]