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