Method: J1App::Commands.execute_command
- Defined in:
- lib/j1_app/j1_auth_manager/commands.rb
.execute_command(*args) ⇒ Object
7 8 9 10 11 |
# File 'lib/j1_app/j1_auth_manager/commands.rb', line 7 def self.execute_command(*args) output, status = Open3.capture2e(*args) raise "Command `#{args.join(" ")}` failed: #{output}" unless status.exitstatus.zero? output end |