Sha256: db2ebb280791ec84409147efbe14a7eb9eba2aea5a819e238b69f075dd8a998d
Contents?: true
Size: 388 Bytes
Versions: 125
Compression:
Stored size: 388 Bytes
Contents
class Specinfra::Command::Base::MailAlias < Specinfra::Command::Base class << self def check_is_aliased_to(mail_alias, recipient) recipient = "[[:space:]]([\"']?)#{recipient}\\1" "getent aliases #{escape(mail_alias)} | egrep -- #{escape(recipient)}$" end def add(mail_alias, recipient) "echo #{mail_alias}: #{recipient} >> /etc/aliases" end end end
Version data entries
125 entries across 125 versions & 2 rubygems