Module: Bootlace::OS

Included in:
Base, Package
Defined in:
lib/bootlace/os.rb

Instance Method Summary collapse

Instance Method Details

#osObject



3
4
5
6
7
8
9
10
11
# File 'lib/bootlace/os.rb', line 3

def os
  if RUBY_PLATFORM.downcase.include? 'darwin'
    :mac
  elsif RUBY_PLATFORM.downcase.include? "linux"
    fetch_distribution
  else
    :unsupported
  end
end