# File lib/bundler/dsl.rb, line 56 def directory(path, options = {}) raise DirectorySourceError, "cannot nest calls to directory or git" if @directory || @git @directory = DirectorySource.new(@bundle, options.merge(:location => path)) @directory_sources << @directory @environment.add_priority_source(@directory) retval = yield if block_given? @directory = nil retval end