Method: Train::Platforms::Detect::Helpers::Linux#redhatish_version
- Defined in:
- lib/train/platforms/detect/helpers/os_linux.rb
#redhatish_version(conf) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/train/platforms/detect/helpers/os_linux.rb', line 9 def redhatish_version(conf) case conf when /rawhide/i /((\d+) \(Rawhide\))/i.match(conf)[1].downcase when /Amazon Linux/i /([\d\.]+)/.match(conf)[1] when /derived from .*linux|amazon/i /Linux ((\d+|\.)+)/i.match(conf)[1] else /release ([\d\.]+)/.match(conf)[1] end end |