method

ask_and_set

ruby latest stable - Class: Bundler::CLI::Gem

Method not available on this version

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

ask_and_set(key, header, message)
private

No documentation available.

# File lib/bundler/cli/gem.rb, line 174
    def ask_and_set(key, header, message)
      choice = options[key]
      choice = Bundler.settings["gem.#{key}"] if choice.nil?

      if choice.nil?
        Bundler.ui.confirm header
        choice = Bundler.ui.yes? "#{message} y/(n):"
        Bundler.settings.set_global("gem.#{key}", choice)
      end

      choice
    end