Method: Oxidized::Output::File#store
- Defined in:
- lib/oxidized/output/file.rb
#store(node, outputs, opt = {}) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/oxidized/output/file.rb', line 22 def store(node, outputs, opt = {}) file = ::File. @cfg.directory file = ::File.join ::File.dirname(file), opt[:group] if opt[:group] FileUtils.mkdir_p file file = ::File.join file, node ::File.write(file, outputs.to_cfg) @commitref = file end |