lib/cli_tools/system.rb
# Returns a host OS name in lowercase.
#
Returns a host OS name in lowercase.
Returns a host OS name in lowercase .
def os_name
  name = `uname` rescue '' 
  name.chomp!
  case name
  when 'Darwin' then 'macosx'
  when 'Linux' then 'linux'
  else
    "unknown(#{name})"
  end
end
def os_name name = ` uname ` rescue '' name . chomp! case name when 'Darwin' then 'macosx' when 'Linux' then 'linux' else "unknown(#{name})" end end
Returns a host OS name in lowercase.
Returns a host OS name in lowercase .
# Windows?