Sha256: 5e0d50786291f37ae6f0747aecb9cc1b21a57d77e0bd37c4a2ead662330a2b93

Contents?: true

Size: 568 Bytes

Versions: 57

Compression:

Stored size: 568 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']
    end

    def override_host_os
      Launchy.host_os
    end

  end

end

Version data entries

57 entries across 43 versions & 5 rubygems

Version Path
launchy-2.5.2 lib/launchy/detect/host_os.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/launchy-2.5.0/lib/launchy/detect/host_os.rb