method

ask_and_set

v2_6_3 - Show latest stable - Class: Bundler::CLI::Gem
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