Class: Vagrant::Butcher::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-butcher/env.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnv

Returns a new instance of Env.



6
7
8
9
10
11
12
# File 'lib/vagrant-butcher/env.rb', line 6

def initialize
  if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new("1.2")
    @ui = ::Vagrant::UI::Colored.new.scope('Butcher')
  else
    @ui = ::Vagrant::UI::Colored.new('Butcher')
  end
end

Instance Attribute Details

#uiObject

Returns the value of attribute ui.



4
5
6
# File 'lib/vagrant-butcher/env.rb', line 4

def ui
  @ui
end