method
replace_remotes
v2_6_3 -
Show latest stable
- Class:
Bundler::Source::Rubygems
replace_remotes(other_remotes, allow_equivalent = false)public
No documentation available.
# File lib/bundler/source/rubygems.rb, line 229
def replace_remotes(other_remotes, allow_equivalent = false)
return false if other_remotes == @remotes
equivalent = allow_equivalent && equivalent_remotes?(other_remotes)
@remotes = []
other_remotes.reverse_each do |r|
add_remote r.to_s
end
!equivalent
end