class Bundler::CLI
def install(path = nil)
def install(path = nil) opts = options.dup opts[:without] ||= [] opts[:without].map! { |g| g.to_sym } # Can't use Bundler.settings for this because settings needs gemfile.dirname ENV['BUNDLE_GEMFILE'] = opts[:gemfile] if opts[:gemfile] Bundler.settings[:path] = path if path Bundler.settings[:disable_shared_gems] = '1' if options["disable-shared-gems"] Bundler.settings.without = opts[:without] remove_lockfiles if options[:relock] Installer.install(Bundler.root, Bundler.definition, opts) # Ensures that .bundle/environment.rb exists # TODO: Figure out a less hackish way to do this Bundler.load lock if options[:relock] end