Module: MacUtilinfo
- Defined in:
- lib/mac_utilinfo.rb
Instance Method Summary collapse
Instance Method Details
#get_total_memory ⇒ Object
4 5 6 7 |
# File 'lib/mac_utilinfo.rb', line 4 def get_total_memory memory_total_in_kb = `cat /proc/meminfo | grep -i 'MemTotal' | awk '{print $2 " " $3}'` return memory_total_in_kb end |