Sha256: a5e6bdfd67ae055ffb665ad0a1541f2ff14af6edb0233b38e3fa9829a6387ff7
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
class Os @@os_bit @@m_os def initialize self.m_os self.os_bit end def m_os @@m_os = `egrep -i 'red\ hat|suse|centos|ubuntu|debian' /etc/issue` @@m_os end def os_bit @@os_bit = `uname -m` if @@os_bit == "x86_64" @@os_bit = "64bit" else @@os_bit == "32bit" end end def parse $return_data = { 'os_bit' => @@os_bit, 'm_os' => @@m_os } end end a = Os.new puts a.m_os
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
miranda-0.0.3 | lib/miranda/system/linux/os.rb |
miranda-0.0.2 | lib/miranda/system/linux/os.rb |