summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/file.rb
diff options
context:
space:
mode:
authornopedial <shafez@ike-2.local>2013-10-14 11:15:12 +0200
committernopedial <shafez@ike-2.local>2013-10-14 11:15:12 +0200
commit5bf9df1ebffd85604206d1baf81a5a92158a117a (patch)
tree211aa5994d0d956a7da60e419e316c3cefef8fcc /lib/oxidized/output/file.rb
parent6ab1fbb3f9f551b67a6481aafe3591e837905a8b (diff)
implement fetch into output model
Diffstat (limited to 'lib/oxidized/output/file.rb')
-rw-r--r--lib/oxidized/output/file.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/output/file.rb b/lib/oxidized/output/file.rb
index 66ad178..8aaae0e 100644
--- a/lib/oxidized/output/file.rb
+++ b/lib/oxidized/output/file.rb
@@ -25,5 +25,9 @@ class OxFile < Output
open(file, 'w') { |fh| fh.write data }
end
+ def fetch node
+ IO.readlines File.join(@cfg[:directory], node)
+ end
+
end
end