class MayamlMutt::AccountCreds
Public Instance Methods
render(mail_account)
click to toggle source
# File lib/mayaml-mutt/account_creds.rb, line 24 def render(mail_account) ::Mustache.render( IO.read(template_file_path), name: mail_account.name, realname: mail_account.realname, user: mail_account.user, pass: mail_account.pass, server: mail_account.server, smtp_protocol: mail_account.smtp_protocol, smtp_port: mail_account.smtp_port, smtp_authenticator: mail_account.smtp_authenticator, smtp_server: mail_account.smtp_server ) end
Private Instance Methods
template_file_path()
click to toggle source
# File lib/mayaml-mutt/account_creds.rb, line 41 def template_file_path templates_dir = File.expand_path("../templates", __dir__) File.join(templates_dir, "account_creds.mustache") end