Method: Launchy::Runner#run
- Defined in:
- lib/launchy/runner.rb
#run(cmd, *args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/launchy/runner.rb', line 8 def run(cmd, *args) unless cmd raise Launchy::CommandNotFoundError, "No command found to run with args '#{args.join(' ')}'. If this is unexpected, #{Launchy.}" end if Launchy.dry_run? $stdout.puts dry_run(cmd, *args) else wet_run(cmd, *args) end end |