Class: Zold::Node::NohupLog

Inherits:
Object
  • Object
show all
Defined in:
lib/zold/commands/node.rb

Overview

Log facility for nohup

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ NohupLog

Returns a new instance of NohupLog.



279
280
281
# File 'lib/zold/commands/node.rb', line 279

def initialize(file)
  @file = file
end

Instance Method Details



283
284
285
# File 'lib/zold/commands/node.rb', line 283

def print(data)
  File.open(@file, 'a') { |f| f.print(data) }
end