Method: Bundler::Definition#setup_domain!

Defined in:
lib/bundler/definition.rb

#setup_domain!(options = {}) ⇒ Boolean

Setup sources according to the given options and the state of the definition.

Returns:

  • (Boolean)

    Whether fetching remote information will be necessary or not

[View source]

189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/bundler/definition.rb', line 189

def setup_domain!(options = {})
  prefer_local! if options[:"prefer-local"]

  if options[:add_checksums] || (!options[:local] && install_needed?)
    remotely!
    true
  else
    Bundler.settings.set_command_option(:jobs, 1) unless install_needed? # to avoid the overhead of Bundler::Worker
    with_cache!
    false
  end
end