module Guard::Notifier::Libnotify

def libnotify_urgency(type)

Returns:
  • (Symbol) - the libnotify urgency

Parameters:
  • type (String) -- the Guard notification type
def libnotify_urgency(type)
  case type
  when 'failed'
    :critical
  when 'pending'
    :normal
  else
    :low
  end
end