Module: AlpacaBuildTool::Os

Defined in:
lib/alpacabuildtool/os.rb

Overview

Os provides methods to simplify defining host os

Class Method Summary collapse

Class Method Details

.osObject

Returns host os as :windows, :macosx, :linux or :unix


9
10
11
12
13
14
# File 'lib/alpacabuildtool/os.rb', line 9

def self.os
  @os ||= (
    host_os = RbConfig::CONFIG['host_os']
    get_os(host_os)
  )
end