Method: Train::Extras::LinuxLSB#lsb_config
- Defined in:
- lib/train/extras/linux_lsb.rb
#lsb_config(content) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/train/extras/linux_lsb.rb', line 13 def lsb_config(content) { id: content[/^DISTRIB_ID=["']?(.+?)["']?$/, 1], release: content[/^DISTRIB_RELEASE=["']?(.+?)["']?$/, 1], codename: content[/^DISTRIB_CODENAME=["']?(.+?)["']?$/, 1], } end |