Module: NotifyPush::Utility
- Defined in:
- lib/notify-push.rb
Overview
MODULE->UTILITY ——————————
Class Method Summary collapse
Class Method Details
.require_system_command_or_raise(command) ⇒ Object
35 36 37 |
# File 'lib/notify-push.rb', line 35 def self.require_system_command_or_raise(command) system "command -v #{command} >/dev/null 2>&1" or raise "The command '#{command}' cannot be found and is required." end |