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.
237 238 239 |
# File 'lib/zold/commands/node.rb', line 237 def initialize(file) @file = file end |
Instance Method Details
#print(data) ⇒ Object
241 242 243 |
# File 'lib/zold/commands/node.rb', line 241 def print(data) File.open(@file, 'a') { |f| f.print(data) } end |