Module: Config
- Included in:
- Pretest::Environment::Check
- Defined in:
- lib/pretest/config/operational_system.rb
Instance Method Summary collapse
- #linux? ⇒ Boolean
-
#mac? ⇒ Boolean
include Unix.
- #set_bits ⇒ Object
- #unix? ⇒ Boolean
- #windows? ⇒ Boolean
Methods included from Windows
Methods included from Linux
Methods included from Unix
Methods included from MacOS
Instance Method Details
#linux? ⇒ Boolean
23 24 25 |
# File 'lib/pretest/config/operational_system.rb', line 23 def linux? unix? && !mac? end |
#mac? ⇒ Boolean
include Unix
11 12 13 |
# File 'lib/pretest/config/operational_system.rb', line 11 def mac? !(/darwin/ =~ RUBY_PLATFORM).nil? end |
#set_bits ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/pretest/config/operational_system.rb', line 27 def set_bits if RUBY_PLATFORM.include?('32') && !RUBY_PLATFORM.include?('64') (@bits = '32') && (@phantomjs_bits = 'linux-i686') && (@devkit = '32-4.7.2-20130224-1151') else (@bits = '64') && (@phantomjs_bits = 'linux-x86_64') && (@devkit = '64-4.7.2-20130224-1432') end end |
#unix? ⇒ Boolean
19 20 21 |
# File 'lib/pretest/config/operational_system.rb', line 19 def unix? !windows? end |
#windows? ⇒ Boolean
15 16 17 |
# File 'lib/pretest/config/operational_system.rb', line 15 def windows? !(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM).nil? end |