Sha256: 9cd5741e9ebaade92bccf2c1daada9643223f557a5ae41d6867d346ce0b012d9

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 Bytes

Contents

module Berkshelf
  module Vagrant
    # @author Jamie Winsor <reset@riotgames.com>
    #
    # Environment data to build up and persist through the middleware chain
    class Env
      # @return [Vagrant::UI::Colored]
      attr_accessor :ui
      # @return [Berkshelf::Berksfile]
      attr_accessor :berksfile
      # @return [String]
      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
        @config = Berkshelf::Config.instance
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
vagrant-berkshelf-1.3.2 lib/berkshelf/vagrant/env.rb
vagrant-berkshelf-1.2.0 lib/berkshelf/vagrant/env.rb
berkshelf-vagrant-1.1.2 lib/berkshelf/vagrant/env.rb