Class: Vagrant::Plugin::V2::Guest

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/plugin/v2/guest.rb

Overview

A base class for a guest OS. A guest OS is responsible for detecting that the guest operating system running within the machine. The guest can then be extended with various "guest capabilities" which are their own form of plugin.

The guest class itself is only responsible for detecting itself, and may provide helpers for the capabilities.

Direct Known Subclasses

Remote::Guest

Instance Method Summary collapse

Instance Method Details

#detect?(machine) ⇒ Boolean

This method is called when the machine is booted and has communication capabilities in order to detect whether this guest operating system is running within the machine.

Returns:

  • (Boolean)


20
21
22
# File 'lib/vagrant/plugin/v2/guest.rb', line 20

def detect?(machine)
  false
end