insert deprecation error message

report_auth_info will now issue an error message
stating that the method is deprecated along with the module name
that called it

MSP-11919
bug/bundler_fix
David Maloney 2015-01-05 14:02:16 -06:00
parent db8f260557
commit fc91244252
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ module Auxiliary::Report
# @option opts [String] :user The username for the cred
# @option opts [String] :pass The private part of the credential (e.g. password)
def report_auth_info(opts={})
print_error "*** #{self.fullname} is still calling the deprecated report_auth_info method! This needs to be updated!"
return if not db
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?
raise ArgumentError.new("Missing required option :port") if (opts[:port].nil? and opts[:service].nil?)