lib/berkshelf/vagrant/env.rb in vagrant-berkshelf-1.4.0.dev1 vs lib/berkshelf/vagrant/env.rb in vagrant-berkshelf-2.0.0.rc1

- old
+ new

@@ -12,14 +12,11 @@ attr_accessor :shelf # @return [Berkshelf::Config] attr_accessor :config def initialize - if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new("1.2") - @ui = ::Vagrant::UI::Colored.new.scope('Berkshelf') - else - @ui = ::Vagrant::UI::Colored.new('Berkshelf') - end + @ui = ::Vagrant::UI::Colored.new + @ui.opts[:target] = 'Berkshelf' @config = Berkshelf::Config.instance end end end end