Class: MayamlGetmail::AccountConfig
- Inherits:
-
Object
- Object
- MayamlGetmail::AccountConfig
- Defined in:
- lib/mayaml-getmail/account_config.rb
Instance Method Summary collapse
Instance Method Details
#render(mail_account, config = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/mayaml-getmail/account_config.rb', line 24 def render(mail_account, config = {}) ::Mustache.render( IO.read(template_file_path), type: type(mail_account), server: mail_account.server, port: mail_account.port, user: mail_account.user, pass: mail_account.pass, mda_path: config.fetch(:mda_path, "/usr/bin/procmail"), read_all: config.fetch(:read_all, "true"), delete: config.fetch(:delete, "true"), mailboxes: mailboxes(mail_account) ) end |