Class: FFSplitter::CLI
- Inherits:
-
Object
- Object
- FFSplitter::CLI
- Defined in:
- lib/ffsplitter.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ CLI
Returns a new instance of CLI.
16 17 18 |
# File 'lib/ffsplitter.rb', line 16 def initialize(argv) @argv = argv end |
Class Method Details
.run(argv = ARGV) ⇒ Object
12 13 14 |
# File 'lib/ffsplitter.rb', line 12 def self.run(argv = ARGV) new(argv).run end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/ffsplitter.rb', line 20 def run if @argv.empty? puts "WTF mate?" exit(1) else = ArgsParser.parse!(@argv) Splitter.split_via_ffmpeg() end end |