module Travis::Tools::Notification

def new(*list)

def new(*list)
  list.concat(DEFAULT) if list.empty?
  notification = list.map { |n| get(n) }.detect { |n| n.available? }
  raise ArgumentError, "no notification system found (looked for #{list.join(', ')})" unless notification
  notification
end