Class: Zold::Node::NohupLog
- Inherits:
-
Object
- Object
- Zold::Node::NohupLog
- Defined in:
- lib/zold/commands/node.rb
Overview
Log facility for nohup
Instance Method Summary collapse
-
#initialize(file) ⇒ NohupLog
constructor
A new instance of NohupLog.
- #print(data) ⇒ Object
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
#print(data) ⇒ Object
280 281 282 |
# File 'lib/zold/commands/node.rb', line 280 def print(data) File.open(@file, 'a') { |f| f.print(data) } end |