class Vagrant::UI::Interface

Vagrant UIs handle communication with the outside world (typically through a shell). They must respond to the following methods:

Attributes

opts[RW]

Opts can be used to set some options. These options are implementation specific. See the implementation for more docs.

Public Class Methods

new() click to toggle source
# File lib/vagrant/ui.rb, line 24
def initialize
  @logger   = Log4r::Logger.new("vagrant::ui::interface")
  @opts     = {}
end

Public Instance Methods

initialize_copy(original) click to toggle source
Calls superclass method
# File lib/vagrant/ui.rb, line 29
def initialize_copy(original)
  super
  @opts = original.opts.dup
end
machine(type, *data) click to toggle source

For machine-readable output.

@param [String] type The type of the data @param [Array] data The data associated with the type

# File lib/vagrant/ui.rb, line 57
def machine(type, *data)
  @logger.info("Machine: #{type} #{data.inspect}")
end