Sha256: a68b83a5781232207f112950af23779c85ad4e659ffb89d5e7802abb4f81e539

Contents?: true

Size: 874 Bytes

Versions: 45

Compression:

Stored size: 874 Bytes

Contents

# frozen_string_literal: true

module Bundler
  # SourceList object to be used while parsing the Gemfile, setting the
  # approptiate options to be used with Source classes for plugin installation
  module Plugin
    class SourceList < Bundler::SourceList
      def add_git_source(options = {})
        add_source_to_list Plugin::Installer::Git.new(options), git_sources
      end

      def add_path_source(options = {})
        add_source_to_list Plugin::Installer::Path.new(options), path_sources
      end

      def add_rubygems_source(options = {})
        add_source_to_list Plugin::Installer::Rubygems.new(options), @rubygems_sources
      end

      def all_sources
        path_sources + git_sources + rubygems_sources + [metadata_source]
      end

      private

      def rubygems_aggregate_class
        Plugin::Installer::Rubygems
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
rubygems-update-3.6.6 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.6 lib/bundler/plugin/source_list.rb
rubygems-update-3.6.5 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.5 lib/bundler/plugin/source_list.rb
rubygems-update-3.6.4 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.4 lib/bundler/plugin/source_list.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/bundler-2.5.21/lib/bundler/plugin/source_list.rb
rubygems-update-3.6.3 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.3 lib/bundler/plugin/source_list.rb
rubygems-update-3.6.2 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.2 lib/bundler/plugin/source_list.rb
rubygems-update-3.6.1 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.1 lib/bundler/plugin/source_list.rb
rubygems-update-3.6.0 bundler/lib/bundler/plugin/source_list.rb
bundler-2.6.0 lib/bundler/plugin/source_list.rb
rubygems-update-3.5.23 bundler/lib/bundler/plugin/source_list.rb
bundler-2.5.23 lib/bundler/plugin/source_list.rb
rubygems-update-3.5.22 bundler/lib/bundler/plugin/source_list.rb
bundler-2.5.22 lib/bundler/plugin/source_list.rb
rubygems-update-3.5.21 bundler/lib/bundler/plugin/source_list.rb