method

warn_on_git_protocol

ruby latest stable - Class: Bundler::SourceList

Method not available on this version

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

warn_on_git_protocol(source)
private

No documentation available.

# File lib/bundler/source_list.rb, line 147
    def warn_on_git_protocol(source)
      return if Bundler.settings["git.allow_insecure"]

      if source.uri =~ /^git\:/
        Bundler.ui.warn "The git source `#{source.uri}` uses the `git` protocol, "            "which transmits data without encryption. Disable this warning with "            "`bundle config git.allow_insecure true`, or switch to the `https` "            "protocol to keep your data secure."
      end
    end