Class: Veewee::UI

Inherits:
Object
  • Object
show all
Defined in:
lib/veewee/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 `success`.

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/veewee/ui.rb', line 10

def initialize(env)
  @env = env
end

Instance Attribute Details

#envObject

Returns the value of attribute env.



7
8
9
# File 'lib/veewee/ui.rb', line 7

def env
  @env
end

#resourceObject

Returns the value of attribute resource.



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

def resource
  @resource
end