Class: Wacker

Inherits:
Object
  • Object
show all
Defined in:
lib/bvwack/wacker.rb

Instance Method Summary collapse

Constructor Details

#initialize(path_to_file) ⇒ Wacker

Returns a new instance of Wacker.



2
3
4
# File 'lib/bvwack/wacker.rb', line 2

def initialize(path_to_file)
  @path_to_file = path_to_file
end

Instance Method Details

#wackObject



6
7
8
9
10
11
# File 'lib/bvwack/wacker.rb', line 6

def wack
  if @path_to_file.class == String
    `ffmpeg -i "#{@path_to_file}" #{FFMPEG_OPTS} "#{@path_to_file.gsub(/mkv$|avi$/, "ipad.mp4")}"`
    #puts "I would have wacked"
  end
end