class Vagrant::Plugin::V2::Guest

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.

Public Instance Methods

detect?(machine) click to toggle source

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.

@return [Boolean]

# File lib/vagrant/plugin/v2/guest.rb, line 17
def detect?(machine)
  false
end