method

add_sources

ruby latest stable - Class: Bundler::LockfileGenerator

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

add_sources()
private

No documentation available.

# File lib/bundler/lockfile_generator.rb, line 30
    def add_sources
      definition.send(:sources).lock_sources.each_with_index do |source, idx|
        out << "\n" unless idx.zero?

        # Add the source header
        out << source.to_lock

        # Find all specs for this source
        specs = definition.resolve.select {|s| source.can_lock?(s) }
        add_specs(specs)
      end
    end