Method: Azure::Storage::Common::Default.os

Defined in:
lib/azure/storage/common/default.rb

.osObject



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/azure/storage/common/default.rb', line 59

def os
  host_os = RbConfig::CONFIG["host_os"]
  case host_os
  when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
    "Windows #{host_os}"
  when /darwin|mac os/
    "MacOS #{host_os}"
  when /linux/
    "Linux #{host_os}"
  when /solaris|bsd/
    "Unix #{host_os}"
  else
    "Unknown #{host_os}"
  end
end