diff --git a/core/ruby/print.rb b/core/ruby/print.rb index 9a2f2024a..f8c58f78d 100644 --- a/core/ruby/print.rb +++ b/core/ruby/print.rb @@ -16,6 +16,18 @@ def print_info(s) puts Time.now.localtime.strftime("[%k:%M:%S]")+'[*]'.blue+' '+s end +# Function used to print information to the console (wraps print_info) +# @param [String] s String to be printed +def print_status(s) + print_info(s) +end + +# Function used to print warning information +# @param [String] s String to be printed +def print_warning(s) + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[!]'.yellow+' '+s.to_s +end + # Function used to print debug information # @param [String] s String to be printed # @note This function will only print messages if the debug flag is set to true @@ -32,6 +44,12 @@ def print_success(s) puts Time.now.localtime.strftime("[%k:%M:%S]")+'[+]'.green+' '+s end +# Function used to print successes to the console (wraps print_success) +# @param [String] s String to be printed +def print_good(s) + print_success(s) +end + # Print multiple lines with decoration split by the return character # @param [String] s String to be printed # @note The string passed needs to be separated by the "\n" for multiple lines to be printed