class KPM::BaseInstaller

def validate_installation_arg!(plugin_key, arg_type, specified_arg, looked_up_arg)

def validate_installation_arg!(plugin_key, arg_type, specified_arg, looked_up_arg)
  # If nothing was specified, or if we don't find anything from the lookup, nothing to validate against
  return if specified_arg.nil? || looked_up_arg.nil?
  raise ArgumentError, "Aborting installation for plugin_key #{plugin_key}: specified value #{specified_arg} for #{arg_type} does not match looked_up value #{looked_up_arg}" if specified_arg.to_s != looked_up_arg.to_s
end