| Class | Gem2Rpm::Distro |
| In: |
lib/gem2rpm/distro.rb
|
| Parent: | Object |
| FEDORA | = | :fedora |
| PLD | = | :pld |
| OPENSUSE | = | :opensuse |
| DEFAULT | = | :default |
| ROLLING_RELEASES | = | %w[rawhide factory tumbleweed].freeze |
| OsRelease | = | Struct.new :os, :version |
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.