Sha256: 27b0384f0371d2c6efdf4c1b567ca3ac00e77b59d75b892340bb72db785c0c10

Contents?: true

Size: 231 Bytes

Versions: 9

Compression:

Stored size: 231 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta14 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta13 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta12 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta11 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta10 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta9 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta8 lib/specinfra/command/base/mail_alias.rb
specinfra-2.0.0.beta7 lib/specinfra/command/base/mail_alias.rb