commit 38789a41e371d6d5676fab06cf6cb8987f9b27cb
parent 29985bd2d93a9bdc3a28209363a11739f78266e6
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Sat, 3 Aug 2013 11:42:02 +0200
Fail if alternate emails are not specified as array in config.yaml
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/account.rb b/lib/sup/account.rb
@@ -50,6 +50,7 @@ class AccountManager
[:name, :sendmail, :signature, :gpgkey].each { |k| hash[k] ||= @default_account.send(k) }
end
hash[:alternates] ||= []
+ fail "alternative emails are not an array: #{hash[:alternates]}" unless hash[:alternates].kind_of? Array
[:name, :signature].each { |x| hash[x] ? hash[x].fix_encoding : nil }