class Os
Public Class Methods
new()
click to toggle source
# File lib/miranda/system/linux/os.rb, line 6 def initialize self.m_os self.os_bit end
Public Instance Methods
m_os()
click to toggle source
# File lib/miranda/system/linux/os.rb, line 11 def m_os @@m_os = `egrep -i 'red\ hat|suse|centos|ubuntu|debian' /etc/issue` @@m_os end
os_bit()
click to toggle source
# File lib/miranda/system/linux/os.rb, line 16 def os_bit @@os_bit = `uname -m` if @@os_bit == "x86_64" @@os_bit = "64bit" else @@os_bit == "32bit" end end
parse()
click to toggle source
# File lib/miranda/system/linux/os.rb, line 26 def parse $return_data = { 'os_bit' => @@os_bit, 'm_os' => @@m_os } end