Class: Vagrant::UI::Interface
- Inherits:
-
Object
- Object
- Vagrant::UI::Interface
- 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`
Instance Attribute Summary collapse
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource = nil) ⇒ Interface
constructor
A new instance of Interface.
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
#resource ⇒ Object
Returns the value of attribute resource.
15 16 17 |
# File 'lib/vagrant/ui.rb', line 15 def resource @resource end |