Module: RUtilAnts::Platform
- Defined in:
- lib/rUtilAnts/Platform.rb,
lib/rUtilAnts/Platforms/i386-linux/PlatformInfo.rb,
lib/rUtilAnts/Platforms/i386-cygwin/PlatformInfo.rb,
lib/rUtilAnts/Platforms/i386-mingw32/PlatformInfo.rb,
lib/rUtilAnts/Platforms/i386-mswin32/PlatformInfo.rb,
lib/rUtilAnts/Platforms/x86_64-linux/PlatformInfo.rb
Defined Under Namespace
Classes: PlatformInfo
Constant Summary collapse
- OS_WINDOWS =
OS constants
0
- OS_LINUX =
1
- OS_CYGWIN =
2
Class Method Summary collapse
-
.initializePlatform ⇒ Object
Initialize the platform info.
Class Method Details
.initializePlatform ⇒ Object
Initialize the platform info
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rUtilAnts/Platform.rb', line 16 def self.initializePlatform # Require the platform info begin require "rUtilAnts/Platforms/#{RUBY_PLATFORM}/PlatformInfo" rescue Exception if (!defined?(logBug)) require 'rUtilAnts/Logging' RUtilAnts::Logging::initializeLogging(File.(File.dirname(__FILE__)), '') end logBug "Current platform #{RUBY_PLATFORM} is not supported (#{$!})." raise RuntimeError, "Current platform #{RUBY_PLATFORM} is not supported (#{$!})." end # Create the corresponding object $rUtilAnts_Platform_Info = PlatformInfo.new Object.module_eval('include RUtilAnts::Platform') end |