Module: Ubuntu1
- Defined in:
- lib/dwell/ubuntu_extensions.rb
Instance Method Summary collapse
Instance Method Details
#lsb_info ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/dwell/ubuntu_extensions.rb', line 6 def lsb_info get "/etc/lsb-release", "/tmp/lsb-release" all = File.open("/tmp/lsb-release").read all.split("\n").inject({}) do |sum,n| l,v=n.split("=") sum[l.downcase.to_sym]=v.gsub(/^"?(.*)/,"\\1").gsub(/"$/,"") sum end end |