Class: Picobox::Os::CurrentOs

Inherits:
Object
  • Object
show all
Defined in:
lib/picobox/os/current_os.rb

Class Method Summary collapse

Class Method Details

.getObject



5
6
7
8
9
10
11
# File 'lib/picobox/os/current_os.rb', line 5

def get
  os = TTY::Platform.new.os
  case os
  when 'darwin' then Darwin
  when 'linux'  then Linux
  else UnsupportedOs end
end