Class: SystemGateway
- Inherits:
-
Object
- Object
- SystemGateway
- Defined in:
- lib/system_gateway.rb
Class Method Summary collapse
Class Method Details
.perform(command) ⇒ Object
4 5 6 7 |
# File 'lib/system_gateway.rb', line 4 def self.perform(command) puts "\033[34mPerforming: #{ command }\033[0m" IO.popen(command).read end |
.perform_with_exit_code(command) ⇒ Object
9 10 11 12 13 |
# File 'lib/system_gateway.rb', line 9 def self.perform_with_exit_code(command) puts "\033[34mPerforming: #{ command }\033[0m" system(command) $?.success? end |