# File lib/bundler/dsl.rb, line 97 def source(source, options = {}) case source when :gemcutter, :rubygems, :rubyforge then @rubygems_source.add_remote "http://rubygems.org" return when String @rubygems_source.add_remote source return else @source = source if options[:prepend] @sources = [@source] | @sources else @sources = @sources | [@source] end yield if block_given? return @source end ensure @source = nil end