lib/specinfra/command/openbsd/base/mail_alias.rb in specinfra-2.0.0.beta15 vs lib/specinfra/command/openbsd/base/mail_alias.rb in specinfra-2.0.0.beta16
- old
+ new
@@ -1,5 +1,7 @@
class Specinfra::Command::Openbsd::Base::MailAlias < Specinfra::Command::Base::MailAlias
- def check_is_aliased_to(recipient, target)
- "egrep '^#{escape(recipient)}:.*#{escape(target)}' /etc/mail/aliases"
+ class << self
+ def check_is_aliased_to(recipient, target)
+ "egrep '^#{escape(recipient)}:.*#{escape(target)}' /etc/mail/aliases"
+ end
end
end