class Nova::Remote::Fake::Platform
The platform information.
@abstract
Public Instance Methods
The number of bits the processor can handle. @api public @see OS#bits @return [Numeric]
# File lib/nova/remote/fake/platform.rb, line 77 def bits; 32; end
True if ruby is running with cygwin. @api public @see OS#cygwin? @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 71 def cygwin?; false; end
Where /dev/null is located on the computer (/dev/null for anything but Windows, NUL for Windows). @api public @see OS#dev_null @return [String]
# File lib/nova/remote/fake/platform.rb, line 84 def dev_null; "/dev/null"; end
True if the ruby is based on the Iron Ruby implementation. @api public @see OS#iron_ruby? @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 65 def iron_ruby?; false; end
True if the ruby is based on the JRuby implementation. @api public @see OS#jruby? @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 59 def jruby?; false; end
True if the OS is based on the linux kernel, false for windows, OSX, or cygwin. @api public @see OS#linux? @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 40 def linux?; false; end
True if the OS is OSX, false for linux, windows, or cygwin. @see OS#osx? @api public @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 46 def osx?; false; end
True for linux? or osx? @api public @see OS#posix? @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 33 def posix?; false; end
The list of platforms that this platform matches.
@abstract @note Since this is a Fake
remote, it defaults to none. @return [Array<Symbol>] the platform list.
# File lib/nova/remote/fake/platform.rb, line 15 def types [] end
Tries to determine the platform version, but if it can’t, it defaults to nil.
@abstract @note Since this is a Fake
remote, it defaults to nil. @return [nil, String]
# File lib/nova/remote/fake/platform.rb, line 25 def version nil end
True if the OS is Windows or jruby?, false for linux or windows. @api public @see OS#windows? @return [Boolean]
# File lib/nova/remote/fake/platform.rb, line 53 def windows?; false; end