summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/file.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2013-10-14 02:23:22 -0700
committerytti <saku@ytti.fi>2013-10-14 02:23:22 -0700
commitd7d490077ce16e76367773f5a5fe8bca4f84f366 (patch)
treeeb0b104fb3573e121bda90a10bab0af883f2e5d7 /lib/oxidized/output/file.rb
parentb19297dde99dfa2430f96ab90b9daeed2a9f340b (diff)
parentfb4bc13364624bd8d78659de52bb5180c040cb0e (diff)
Merge pull request #6 from nopedial/master
Implement fetch method for 'file' 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