class Bundler::Environment - bundler-1.6.9 Documentation

# class Bundler::Environment

### Attributes

root[R]

### Public Class Methods

new(root, definition) click to toggle source

    # File lib/bundler/environment.rb, line 5
    def initialize(root, definition)
      @root = root
      @definition = definition

      env_file = Bundler.app_config_path.join('environment.rb')
      env_file.rmtree if env_file.exist?
    end

### Public Instance Methods

current_dependencies() click to toggle source

    # File lib/bundler/environment.rb, line 29
    def current_dependencies
      @definition.current_dependencies
    end

dependencies() click to toggle source

    # File lib/bundler/environment.rb, line 25
    def dependencies
      @definition.dependencies
    end

inspect() click to toggle source

    # File lib/bundler/environment.rb, line 13
    def inspect
      @definition.to_lock.inspect
    end

lock() click to toggle source

    # File lib/bundler/environment.rb, line 33
    def lock
      @definition.lock(Bundler.default_lockfile)
    end

requested_specs() click to toggle source

    # File lib/bundler/environment.rb, line 17
    def requested_specs
      @definition.requested_specs
    end

specs() click to toggle source

    # File lib/bundler/environment.rb, line 21
    def specs
      @definition.specs
    end

update(*gems) click to toggle source

    # File lib/bundler/environment.rb, line 37
    def update(*gems)
      # Nothing
    end