lib/rshade/formatter/trace/html.rb in rshade-0.2.2 vs lib/rshade/formatter/trace/html.rb in rshade-1.10.0

- old
+ new

@@ -22,14 +22,16 @@ content = erb_template.result_with_hash({ json: data.to_json }) write_to_file(content) end def write_to_file(data) - ::File.write(::File.join(RShade::Utils.store_dir, FILE_NAME), data) + ::File.open(::File.join(RShade::Config.store_dir, FILE_NAME), 'w+') do |f| + f.write data + end end def template - @template ||= ::File.read(::File.join(::RShade::Utils.root_dir, TEMPLATE)) + @template ||= ::File.read(::File.join(::RShade::Config.root_dir, TEMPLATE)) end end end end end