Add a close method to the file output
git-svn-id: file:///home/svn/framework3/trunk@9189 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
71a5238e94
commit
5bc9a572e6
|
@ -25,10 +25,16 @@ class Output::File < Rex::Ui::Text::Output
|
|||
# Prints the supplied message to file output.
|
||||
#
|
||||
def print_raw(msg = '')
|
||||
return if not self.fd
|
||||
self.fd.write(msg)
|
||||
self.fd.flush
|
||||
msg
|
||||
end
|
||||
|
||||
def close
|
||||
self.fd.close if self.fd
|
||||
self.fd = nil
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue