Sha256: 95435e9e56b0b5fb185662d2b12e52a53a23ae8a4fbc28538fc4555b430046a7

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

require "aruba/platforms/unix_platform"
require "aruba/platforms/windows_platform"

# Aruba
module Aruba
  PLATFORM_MUTEX = Mutex.new

  PLATFORM = [Platforms::WindowsPlatform, Platforms::UnixPlatform].find(&:match?)

  PLATFORM_MUTEX.synchronize do
    @platform = PLATFORM.new
  end

  class << self
    attr_reader :platform
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/platform.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/platform.rb
aruba-2.2.0 lib/aruba/platform.rb
aruba-2.1.0 lib/aruba/platform.rb
aruba-2.0.1 lib/aruba/platform.rb