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



61
62
63
# File 'lib/notify-push.rb', line 61

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