class Nova::Remote::Fake::Platform

The platform information.

@abstract

Public Instance Methods

bits() click to toggle source

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
cygwin?() click to toggle source

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
dev_null() click to toggle source

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
iron_ruby?() click to toggle source

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
jruby?() click to toggle source

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
linux?() click to toggle source

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
osx?() click to toggle source

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
posix?() click to toggle source

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
types() click to toggle source

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
version() click to toggle source

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
windows?() click to toggle source

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