From 3e40433f00c42231096c43d2a9b31ae9b3fd0eb5 Mon Sep 17 00:00:00 2001 From: James Lee Date: Thu, 30 Apr 2015 08:56:16 -0500 Subject: [PATCH] Add an alias for write Fixes #4971 --- lib/rex/ui/text/output/file.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rex/ui/text/output/file.rb b/lib/rex/ui/text/output/file.rb index e55f832282..ad0ed6bb12 100644 --- a/lib/rex/ui/text/output/file.rb +++ b/lib/rex/ui/text/output/file.rb @@ -31,6 +31,7 @@ class Output::File < Rex::Ui::Text::Output self.fd.flush msg end + alias_method :write, :print_raw def close self.fd.close if self.fd