Class: Bindeps::System
- Inherits:
-
Object
- Object
- Bindeps::System
- Defined in:
- lib/bindeps.rb
Class Method Summary collapse
Class Method Details
.arch ⇒ Object
221 222 223 |
# File 'lib/bindeps.rb', line 221 def self.arch Gem::Platform.local.cpu == 'x86_64' ? '64bit' : '32bit' end |
.os ⇒ Object
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/bindeps.rb', line 202 def self.os ( host_os = RbConfig::CONFIG['host_os'] case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ :windows when /darwin|mac os/ :macosx when /linux/ :linux when /solaris|bsd/ :unix else raise UnsupportedSystemError, "can't install #{@name}, unknown os: #{host_os.inspect}" end ) end |