Class: Stable::System::Shell
- Inherits:
-
Object
- Object
- Stable::System::Shell
- Defined in:
- lib/stable/system/shell.rb
Overview
Shell command execution utilities
Class Method Summary collapse
Class Method Details
.run(cmd) ⇒ Object
7 8 9 10 11 |
# File 'lib/stable/system/shell.rb', line 7 def self.run(cmd) puts "→ #{cmd}" success = system(cmd) raise "Command failed: #{cmd}" unless success end |