/usr/lib/ruby/vendor_ruby/aruba/platform.rb is in ruby-aruba 0.14.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 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
|