Class: Startling::Shell
- Inherits:
-
Object
- Object
- Startling::Shell
- Defined in:
- lib/startling/shell.rb
Class Method Summary collapse
Class Method Details
.run(command) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/startling/shell.rb', line 3 def self.run(command) result = `#{command}` unless $?.success? exit 1 end result end |