Class: ActiveVlc::CLI::Pipe
- Inherits:
-
Thor
- Object
- Thor
- ActiveVlc::CLI::Pipe
- Defined in:
- lib/activevlc/cli/pipe.rb
Instance Method Summary collapse
- #dump(path, *inputs) ⇒ Object
- #exec(path, *inputs) ⇒ Object
- #fragment(path, *inputs) ⇒ Object
- #test ⇒ Object
Instance Method Details
#dump(path, *inputs) ⇒ Object
27 28 29 |
# File 'lib/activevlc/cli/pipe.rb', line 27 def dump(path, *inputs) _load_pipe(path, *inputs) { |pipe| pipe.dump } end |
#exec(path, *inputs) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/activevlc/cli/pipe.rb', line 14 def exec(path, *inputs) _load_pipe(path, *inputs) do |pipe| fragment = pipe.fragment if [:cmd] Kernel.exec "vlc -I dummy -vvv #{fragment} vlc://quit" else ActiveVlc::Runner.new(pipe).run end end end |
#fragment(path, *inputs) ⇒ Object
8 9 10 |
# File 'lib/activevlc/cli/pipe.rb', line 8 def fragment(path, *inputs) _load_pipe(path, *inputs) { |pipe| puts pipe.fragment } end |
#test ⇒ Object
33 34 35 |
# File 'lib/activevlc/cli/pipe.rb', line 33 def test puts .inspect end |