Sha256: 00a0472f08b46718990a2136ba5bc4a68ed5340217ebdc66772323f45da96f8f

Contents?: true

Size: 381 Bytes

Versions: 9

Compression:

Stored size: 381 Bytes

Contents

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

module Aruba
  PLATFORM_MUTEX = Mutex.new
end

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

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

  class << self
    attr_reader :platform
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
aruba-0.11.0.pre lib/aruba/platform.rb
aruba-0.10.2 lib/aruba/platform.rb
aruba-0.10.1 lib/aruba/platform.rb
aruba-0.10.0 lib/aruba/platform.rb
aruba-0.10.0.pre2 lib/aruba/platform.rb
aruba-0.10.0.pre lib/aruba/platform.rb
aruba-0.9.0 lib/aruba/platform.rb
aruba-0.9.0.pre2 lib/aruba/platform.rb
aruba-0.9.0.pre lib/aruba/platform.rb