Class: Evideo::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/evideo.rb

Overview

CLI para analisar/processar videos

Instance Method Summary collapse

Instance Method Details

#convObject

converte videos



28
29
30
31
32
33
34
35
# File 'lib/evideo.rb', line 28

def conv
  # cria pasta final para videos processados
  system("mkdir -p #{ipasta}/#{options[:o]}")

  Dir.glob("#{ipasta}/*.???").sort.each do |file|
    Video.new(file, options).processa
  end
end

#testObject

testa videos



39
40
41
42
43
# File 'lib/evideo.rb', line 39

def test
  Dir.glob("#{ipasta}/*.???").sort.each do |file|
    puts(Video.new(file, options).inout)
  end
end