Class: Nova::Remote::Fake::Platform Abstract
- Inherits:
-
Object
- Object
- Nova::Remote::Fake::Platform
- Defined in:
- lib/nova/remote/fake/platform.rb
Overview
The platform information.
Instance Method Summary collapse
-
#bits ⇒ Numeric
The number of bits the processor can handle.
-
#cygwin? ⇒ Boolean
True if ruby is running with cygwin.
-
#dev_null ⇒ String
Where /dev/null is located on the computer (/dev/null for anything but Windows, NUL for Windows).
-
#iron_ruby? ⇒ Boolean
True if the ruby is based on the Iron Ruby implementation.
-
#jruby? ⇒ Boolean
True if the ruby is based on the JRuby implementation.
-
#linux? ⇒ Boolean
True if the OS is based on the linux kernel, false for windows, OSX, or cygwin.
-
#osx? ⇒ Boolean
True if the OS is OSX, false for linux, windows, or cygwin.
-
#posix? ⇒ Boolean
True for linux? or osx?.
-
#types ⇒ Array<Symbol>
abstract
The list of platforms that this platform matches.
-
#version ⇒ nil, String
abstract
Tries to determine the platform version, but if it can’t, it defaults to nil.
-
#windows? ⇒ Boolean
True if the OS is Windows or jruby?, false for linux or windows.
Instance Method Details
#bits ⇒ Numeric
The number of bits the processor can handle.
77 |
# File 'lib/nova/remote/fake/platform.rb', line 77 def bits; 32; end |
#cygwin? ⇒ Boolean
True if ruby is running with cygwin.
71 |
# File 'lib/nova/remote/fake/platform.rb', line 71 def cygwin?; false; end |
#dev_null ⇒ String
Where /dev/null is located on the computer (/dev/null for anything but Windows, NUL for Windows).
84 |
# File 'lib/nova/remote/fake/platform.rb', line 84 def dev_null; "/dev/null"; end |
#iron_ruby? ⇒ Boolean
True if the ruby is based on the Iron Ruby implementation.
65 |
# File 'lib/nova/remote/fake/platform.rb', line 65 def iron_ruby?; false; end |
#jruby? ⇒ Boolean
True if the ruby is based on the JRuby implementation.
59 |
# File 'lib/nova/remote/fake/platform.rb', line 59 def jruby?; false; end |
#linux? ⇒ Boolean
True if the OS is based on the linux kernel, false for windows, OSX, or cygwin.
40 |
# File 'lib/nova/remote/fake/platform.rb', line 40 def linux?; false; end |
#osx? ⇒ Boolean
True if the OS is OSX, false for linux, windows, or cygwin.
46 |
# File 'lib/nova/remote/fake/platform.rb', line 46 def osx?; false; end |
#posix? ⇒ Boolean
True for linux? or osx?
33 |
# File 'lib/nova/remote/fake/platform.rb', line 33 def posix?; false; end |
#types ⇒ Array<Symbol>
Since this is a Fake remote, it defaults to none.
The list of platforms that this platform matches.
15 16 17 |
# File 'lib/nova/remote/fake/platform.rb', line 15 def types [] end |
#version ⇒ nil, String
Since this is a Fake remote, it defaults to nil.
Tries to determine the platform version, but if it can’t, it defaults to nil.
25 26 27 |
# File 'lib/nova/remote/fake/platform.rb', line 25 def version nil end |
#windows? ⇒ Boolean
True if the OS is Windows or jruby?, false for linux or windows.
53 |
# File 'lib/nova/remote/fake/platform.rb', line 53 def windows?; false; end |