class Launchy::Detect::HostOs - launchy-2.4.3 Documentation

# class Launchy::Detect::HostOs

### Attributes

host_os[R]
to_s[R]
to_str[R]

### Public Class Methods

new( host_os = nil ) click to toggle source

    # File lib/launchy/detect/host_os.rb, line 10
    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

### Public Instance Methods

default_host_os() click to toggle source

    # File lib/launchy/detect/host_os.rb, line 22
    def default_host_os
      ::RbConfig::CONFIG['host_os']
    end

override_host_os() click to toggle source

    # File lib/launchy/detect/host_os.rb, line 26
    def override_host_os
      Launchy.host_os
    end