lib/abrizer/ffprobe_file.rb in abrizer-0.4.0 vs lib/abrizer/ffprobe_file.rb in abrizer-0.5.0

- old
+ new

@@ -2,16 +2,17 @@ class FfprobeFile include FilepathHelpers def initialize(filename, output_directory) - @informer = FfprobeInformer.new(filename) + @informer = FfprobeInformer.new(filepath: filename) @output_directory = output_directory + FileUtils.mkdir_p @output_directory unless File.exist? @output_directory end def run File.open(ffprobe_filepath, 'w') do |fh| - fh.puts @informer.json_result + fh.puts @informer.to_json end end end end