Sha256: 0af4b58f37cc71c98a5cc07008d0f99943410f43f002e49fcec7cf49bd7d3955

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

class Specinfra::Command::Base::MailAlias < Specinfra::Command::Base
  class << self
    def check_is_aliased_to(recipient, target)
      target = "[[:space:]]#{target}"
      "getent aliases #{escape(recipient)} | grep -- #{escape(target)}$"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta21 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta20 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta19 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta18 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta17 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta16 lib/specinfra/command/base/mail_alias.rb