class Flor::Tools::ShellOut
Public Class Methods
new(unit)
click to toggle source
# File lib/flor/tools/shell_out.rb, line 7 def initialize(unit) @file = File.open('.log.txt', 'ab') @file.sync = true #@unit.conf['fls_file'] #@unit.conf['fls_file_mode'] end
Public Instance Methods
method_missing(*args)
click to toggle source
# File lib/flor/tools/shell_out.rb, line 27 def method_missing(*args) p [ 'MISSING>>>', args ] end
puts(s)
click to toggle source
# File lib/flor/tools/shell_out.rb, line 21 def puts(s) $stdout.puts(s) @file.puts(s) end
tty?()
click to toggle source
# File lib/flor/tools/shell_out.rb, line 16 def tty? $stdout.tty? end