class Bundler::CLI::Config::Base
def validate_scope!
def validate_scope! @explicit_scope = true scopes = %w[global local].select {|s| options[s] } case scopes.size when 0 @scope = inside_app? ? "local" : "global" @explicit_scope = false when 1 @scope = scopes.first else raise InvalidOption, "The options #{scopes.join " and "} were specified. Please only use one of the switches at a time." end end