Class: Vagrant::UI

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 typically logger methods of warn, error, info, and confirm.

Direct Known Subclasses

Shell

Defined Under Namespace

Classes: Shell

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ UI

Returns a new instance of UI.



10
11
12
# File 'lib/vagrant/ui.rb', line 10

def initialize(env)
  @env = env
end

Instance Attribute Details

#envObject

Returns the value of attribute env.



8
9
10
# File 'lib/vagrant/ui.rb', line 8

def env
  @env
end