Add a close method to the file output

git-svn-id: file:///home/svn/framework3/trunk@9189 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-05-01 17:13:14 +00:00
parent 71a5238e94
commit 5bc9a572e6
1 changed files with 6 additions and 0 deletions

View File

@ -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