class SystemGateway
Public Class Methods
perform(command)
click to toggle source
# 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)
click to toggle source
# File lib/system_gateway.rb, line 9 def self.perform_with_exit_code(command) puts "\033[34mPerforming: #{ command }\033[0m" system(command) $?.success? end