Module: ThreddedCreateApp::RunCommand
- Included in:
- CLI, Tasks::Base
- Defined in:
- lib/thredded_create_app/run_command.rb
Instance Method Summary collapse
Instance Method Details
#run(*args, log: true, run_method: :system) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/thredded_create_app/run_command.rb', line 5 def run(*args, log: true, run_method: :system) if log log_command args.length == 1 ? args[0] : Shellwords.shelljoin(args) end exit 1 unless send(run_method, *args) end |