Sha256: c19e60dae304c210bb4fc65f65c82224b38964d4ffc5dae3c683d9385cfe71ac
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
require 'rbconfig' module Launchy::Detect class HostOs attr_reader :host_os alias to_s host_os alias to_str host_os def initialize( host_os = nil ) @host_os = host_os if not @host_os then if @host_os = override_host_os then Launchy.log "Using LAUNCHY_HOST_OS override value of '#{Launchy.host_os}'" else @host_os = default_host_os end end end def default_host_os ::RbConfig::CONFIG['host_os'].downcase end def override_host_os Launchy.host_os end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
launchy-3.0.0 | lib/launchy/detect/host_os.rb |