Module: Nerve::Utils
- Included in:
- Reporter::Base, ServiceCheck::BaseServiceCheck, ServiceWatcher
- Defined in:
- lib/nerve/utils.rb
Instance Method Summary collapse
Instance Method Details
#safe_run(command) ⇒ Object
3 4 5 6 |
# File 'lib/nerve/utils.rb', line 3 def safe_run(command) res = `#{command}`.chomp raise "command '#{command}' failed to run:\n#{res}" unless $?.success? end |