Sha256: baf8a09a7e677fa9d0d5d3aa41c612167cf78e631c02c32a706201a5e9f12a7f

Contents?: true

Size: 543 Bytes

Versions: 22

Compression:

Stored size: 543 Bytes

Contents

require 'rbconfig'

module Launchy::Detect
  class HostOs

    attr_reader :host_os
    alias to_s 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']
    end

    def override_host_os
      Launchy.host_os
    end

  end

end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
launchy-2.1.1-java lib/launchy/detect/host_os.rb
launchy-2.1.1 lib/launchy/detect/host_os.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/launchy-2.1.0/lib/launchy/detect/host_os.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/launchy-2.1.0/lib/launchy/detect/host_os.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/launchy-2.1.0/lib/launchy/detect/host_os.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/launchy-2.1.0/lib/launchy/detect/host_os.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/launchy-2.1.0/lib/launchy/detect/host_os.rb
launchy-2.1.0-java lib/launchy/detect/host_os.rb
launchy-2.1.0 lib/launchy/detect/host_os.rb
launchy-2.0.5-java lib/launchy/detect/host_os.rb
wijet-launchy-2.0.6 lib/launchy/detect/host_os.rb
launchy-2.0.5 lib/launchy/detect/host_os.rb
launchy-2.0.4-java lib/launchy/detect/host_os.rb
launchy-2.0.4 lib/launchy/detect/host_os.rb
launchy-2.0.3-java lib/launchy/detect/host_os.rb
launchy-2.0.3 lib/launchy/detect/host_os.rb
launchy-2.0.2-java lib/launchy/detect/host_os.rb
launchy-2.0.2 lib/launchy/detect/host_os.rb
launchy-2.0.1 lib/launchy/detect/host_os.rb
launchy-2.0.1-java lib/launchy/detect/host_os.rb