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.



251
252
253
# File 'lib/zold/commands/node.rb', line 251

def initialize(file)
  @file = file
end

Instance Method Details



255
256
257
# File 'lib/zold/commands/node.rb', line 255

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