Files
metasploit-gs/lib/rex/ui/text/output/buffer/stdout.rb
T
Luke Imhoff 47842aa6a2 Fix 'Output is not a module'
[#46491831]

I missed that Rex::Ui::Text::Output was a class and not a module, so
starting up prosvc fell over when it loaded
rex/ui/text/output/buffer/stdout, which also would screw up
msf/ui/console/command_dispatcher/core.rb where I original added
Rex::Ui::Text::Output::Buffer::Stdout.
2013-04-01 20:16:28 -05:00

25 lines
592 B
Ruby

# make sure the classes are defined before opening it to define submodule
require 'rex/ui/text/output'
require 'rex/ui/text/output/buffer'
module Rex
module Ui
module Text
class Output
class Buffer
# Adds {#write} method to {Rex::Ui::Text::Output::Buffer} so it can
# function as a stand-in for `$stdout`
module Stdout
# Prints raw message.
#
# @param (see Rex::Ui::Text::Output::Buffer#write)
# @return (see Rex::Ui::Text::Output::Buffer#write)
def write(msg = '')
print_raw(msg)
end
end
end
end
end
end
end