Class: VagrantPlugins::ChefZero::Env
- Inherits:
-
Object
- Object
- VagrantPlugins::ChefZero::Env
- Defined in:
- lib/vagrant-chef-zero/env.rb
Overview
Environment data to build up and persist through the middleware chain
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Env
constructor
A new instance of Env.
Constructor Details
#initialize ⇒ Env
Returns a new instance of Env.
12 13 14 15 16 17 18 19 20 |
# File 'lib/vagrant-chef-zero/env.rb', line 12 def initialize vagrant_version = Gem::Version.new(::Vagrant::VERSION) if vagrant_version >= Gem::Version.new("1.5") @ui = ::Vagrant::UI::Colored.new @ui.opts[:target] = 'Butcher' elsif vagrant_version >= Gem::Version.new("1.2") @ui = ::Vagrant::UI::Colored.new.scope('Chef Zero') end end |
Instance Attribute Details
#server ⇒ ChefZero::Server
10 11 12 |
# File 'lib/vagrant-chef-zero/env.rb', line 10 def server @server end |
#ui ⇒ Vagrant::UI::Colored
8 9 10 |
# File 'lib/vagrant-chef-zero/env.rb', line 8 def ui @ui end |