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.



276
277
278
# File 'lib/zold/commands/node.rb', line 276

def initialize(file)
  @file = file
end

Instance Method Details



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

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