add print_good methods to rex input shells, fixes #1703

git-svn-id: file:///home/svn/framework3/trunk@9103 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-04-19 22:09:55 +00:00
parent af901888d2
commit 6d788a9437
2 changed files with 16 additions and 0 deletions

View File

@ -58,6 +58,13 @@ module DispatcherShell
shell.print_line(msg)
end
#
# Wraps shell.print_good
#
def print_good(msg = '')
shell.print_good(msg)
end
#
# Wraps shell.print
#

View File

@ -218,6 +218,15 @@ module Shell
log_output(output.print_status(msg))
end
#
# Prints a good message to the output handle.
#
def print_good(msg='')
return if (disable_output == true)
log_output(output.print_good(msg))
end
#
# Prints a line of text to the output handle.
#