Class: Nova::Remote::Fake::Platform Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/nova/remote/fake/platform.rb

Overview

This class is abstract.

The platform information.

Instance Method Summary collapse

Instance Method Details

#bitsNumeric

The number of bits the processor can handle.

Returns:

  • (Numeric)

See Also:

  • OS#bits


77
# File 'lib/nova/remote/fake/platform.rb', line 77

def bits; 32; end

#cygwin?Boolean

True if ruby is running with cygwin.

Returns:

  • (Boolean)

See Also:

  • OS#cygwin?


71
# File 'lib/nova/remote/fake/platform.rb', line 71

def cygwin?; false; end

#dev_nullString

Where /dev/null is located on the computer (/dev/null for anything but Windows, NUL for Windows).

Returns:

  • (String)

See Also:

  • OS#dev_null


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.

Returns:

  • (Boolean)

See Also:

  • OS#iron_ruby?


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.

Returns:

  • (Boolean)

See Also:

  • OS#jruby?


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.

Returns:

  • (Boolean)

See Also:

  • OS#linux?


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.

Returns:

  • (Boolean)

See Also:

  • OS#osx?


46
# File 'lib/nova/remote/fake/platform.rb', line 46

def osx?; false; end

#posix?Boolean

True for linux? or osx?

Returns:

  • (Boolean)

See Also:

  • OS#posix?


33
# File 'lib/nova/remote/fake/platform.rb', line 33

def posix?; false; end

#typesArray<Symbol>

This method is abstract.
Note:

Since this is a Fake remote, it defaults to none.

The list of platforms that this platform matches.

Returns:

  • (Array<Symbol>)

    the platform list.



15
16
17
# File 'lib/nova/remote/fake/platform.rb', line 15

def types
  []
end

#versionnil, String

This method is abstract.
Note:

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.

Returns:

  • (nil, String)


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.

Returns:

  • (Boolean)

See Also:

  • OS#windows?


53
# File 'lib/nova/remote/fake/platform.rb', line 53

def windows?; false; end