Vagrant UIs handle communication with the outside world (typically through a shell). They must respond to the following methods:
`info`
`warn`
`error`
`success`
Opts can be used to set some options. These options are implementation specific. See the implementation for more docs.
# File lib/vagrant/ui.rb, line 24 def initialize @logger = Log4r::Logger.new("vagrant::ui::interface") @opts = {} end
# File lib/vagrant/ui.rb, line 29 def initialize_copy(original) super @opts = original.opts.dup end
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