class VpsbClient::Builders::UnameParser
Constants
- REGEX
Linux lino 3.12.6-x86_64-linode36 #2 SMP Mon Jan 13 18:54:10 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
Attributes
kernel[R]
os_type[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
VpsbClient::Builders::SystemInfoParser::new
# File lib/vpsb_client/builders/system_info_parser.rb, line 63 def initialize super('uname -a') end
Public Instance Methods
parse()
click to toggle source
# File lib/vpsb_client/builders/system_info_parser.rb, line 67 def parse matches = find_matches!(REGEX) @kernel = matches[:kernel] @os_type = matches[:type] end