Class: Lapidarist::Shell
- Inherits:
-
Object
- Object
- Lapidarist::Shell
- Defined in:
- lib/lapidarist/shell.rb
Instance Method Summary collapse
Instance Method Details
#run(*commands, label: nil, &block) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/lapidarist/shell.rb', line 3 def run(*commands, label: nil, &block) if commands.one? run_single_command(commands.first, label, &block) else pipe_multiple_commands(*commands, &block) end end |