Sha256: 05b115fcac4d028669019c26c6fca6c1ea47c47188683c833ea206066498acb9
Contents?: true
Size: 729 Bytes
Versions: 6
Compression:
Stored size: 729 Bytes
Contents
require 'ns-options' require 'ns-options/boolean' require 'inbox-sync/config/credentials' module InboxSync; end class InboxSync::Config class SMTPConfig include NsOptions::Proxy opt :host, :required => true opt :port, :default => 25, :required => true opt :tls, NsOptions::Boolean, :default => false, :required => true opt :helo, :required => true opt :login, Credentials, :required => true, :default => {} opt :authtype, :default => :login, :required => true opt :from_addr, :required => true opt :to_addr, :required => true def validate! if !required_set? raise ArgumentError, "some required configs are missing" end login.validate! end end end
Version data entries
6 entries across 6 versions & 1 rubygems