Class: Vagrant::UI::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/ui.rb

Overview

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

  • ‘info`

  • ‘warn`

  • ‘error`

  • ‘success`

Direct Known Subclasses

Basic, Silent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource = nil) ⇒ Interface

Returns a new instance of Interface.



17
18
19
20
# File 'lib/vagrant/ui.rb', line 17

def initialize(resource=nil)
  @logger   = Log4r::Logger.new("vagrant::ui::interface")
  @resource = resource
end

Instance Attribute Details

#resourceObject

Returns the value of attribute resource.



15
16
17
# File 'lib/vagrant/ui.rb', line 15

def resource
  @resource
end