Sha256: 4623a36f0e29d53bf8d567022f9644bf65fb4aef05c1c427ff305e20c9227772

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

module FLV
  module Edit
    module Processor
      class CommandLine < Base
        def on_header(h)
          @last = h.path
        end
      
        def process_all
          ok, errors = [], []
          begin
            each{}
            ok << @last
          rescue Exception => e
            errors << [@last, e]
          end while has_next_file?
          puts (["Processed successfully:"] + ok).join("\n") unless ok.empty?
          puts (["**** Processed with errors: ****"] + errors.map{|path, err| "#{path}: #{err}"}).join("\n") unless errors.empty?
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
marcandre-flvedit-0.6.1 lib/flv/edit/processor/command_line.rb
flvedit-0.6.1 lib/flv/edit/processor/command_line.rb