Module: ExecutableStories::JsonWriter
- Defined in:
- lib/executable_stories/json_writer.rb
Class Method Summary collapse
Class Method Details
.write_raw_run(run, output_path) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/executable_stories/json_writer.rb', line 11 def write_raw_run(run, output_path) dir = File.dirname(output_path) FileUtils.mkdir_p(dir) json = "#{JSON.pretty_generate(ExecutableStories.run_to_h(run))}\n" File.write(output_path, json) end |