Sha256: e3965425ad0712227c764de752f10316784226ef23442b8155278193241e9423

Contents?: true

Size: 418 Bytes

Versions: 26

Compression:

Stored size: 418 Bytes

Contents

require 'thread'
require 'aruba/platforms/unix_platform'
require 'aruba/platforms/windows_platform'

# Aruba
module Aruba
  PLATFORM_MUTEX = Mutex.new
end

# Aruba
module Aruba
  # Platform
  Platform = [Platforms::WindowsPlatform, Platforms::UnixPlatform].find(&:match?)
end

# Aruba
module Aruba
  PLATFORM_MUTEX.synchronize do
    @platform = Platform.new
  end

  class << self
    attr_reader :platform
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
aruba-0.14.14 lib/aruba/platform.rb
aruba-0.14.13 lib/aruba/platform.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/platform.rb
aruba-0.14.12 lib/aruba/platform.rb
aruba-0.14.11 lib/aruba/platform.rb
aruba-0.14.10 lib/aruba/platform.rb
aruba-0.14.9 lib/aruba/platform.rb
aruba-0.14.8 lib/aruba/platform.rb
aruba-0.14.7 lib/aruba/platform.rb
aruba-0.14.6 lib/aruba/platform.rb
aruba-0.14.5 lib/aruba/platform.rb
aruba-0.14.4 lib/aruba/platform.rb
aruba-0.14.3 lib/aruba/platform.rb
aruba-1.0.0.pre.alpha.2 lib/aruba/platform.rb
aruba-1.0.0.pre.alpha.1 lib/aruba/platform.rb
aruba-win-fix-0.14.2 lib/aruba/platform.rb
aruba-0.14.2 lib/aruba/platform.rb
aruba-0.14.1 lib/aruba/platform.rb
aruba-0.14.0 lib/aruba/platform.rb
aruba-0.13.0 lib/aruba/platform.rb