# 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
# File lib/bundler/environment.rb, line 34 def current_dependencies @definition.current_dependencies end
# File lib/bundler/environment.rb, line 30 def dependencies @definition.dependencies end
TODO: Remove this method. It's used in cli.rb still
# File lib/bundler/environment.rb, line 18 def index @definition.index end
# File lib/bundler/environment.rb, line 13 def inspect @definition.to_lock.inspect end
# File lib/bundler/environment.rb, line 38 def lock @definition.lock(Bundler.default_lockfile) end
# File lib/bundler/environment.rb, line 22 def requested_specs @definition.requested_specs end
# File lib/bundler/environment.rb, line 26 def specs @definition.specs end
# File lib/bundler/environment.rb, line 42 def update(*gems) # Nothing end