Module: Tenma::Runnable
- Included in:
- Ichiba::Instance
- Defined in:
- lib/tenma/runnable.rb
Defined Under Namespace
Classes: CommandException
Instance Method Summary collapse
Instance Method Details
#run(command) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/tenma/runnable.rb', line 3 def run(command) output = `#{command}` if !$?.success? raise CommandException, "Failed! #{command}" end return output end |