Class: CARPS::Setup::Email
- Inherits:
-
Interface
- Object
- Interface
- QuitInterface
- Interface
- CARPS::Setup::Email
- Defined in:
- lib/carps/wizard/steps.rb
Overview
Configure email
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize ⇒ Email
constructor
A new instance of Email.
Methods included from ControlInterface
Methods inherited from Interface
Constructor Details
#initialize ⇒ Email
Returns a new instance of Email.
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/carps/wizard/steps.rb', line 145 def initialize super add_command "address", "Set your email address", "ADDRESS" add_command "user", "Sets your username for both SMTP and IMAP.", "USERNAME" add_command "server", "Sets your server for both SMTP and IMAP.", "SERVER" add_command "same_password", "You use the same password for both SMTP and IMAP. Default: yes.", "yes/no" add_command "smtp_server", "Sets your SMTP server.", "SERVER_ADDRESS" add_command "smtp_port", "The SMTP server's port. Default is 25.", "PORT" add_command "smtp_user", "Sets your username for SMTP only.", "USERNAME" add_command "smtp_auth", "Configure authentication mechanism for your SMTP account\n" + ("plain", "plain", "login", "cram_md5"), "AUTHENTICATION" add_command "smtp_crypt", "Configure encryption for your SMTP account\n" + ("none", "none", "tls", "starttls"), "SECURITY" add_command "imap_server", "Sets your IMAP server.", "SERVER_ADDRESS" add_command "imap_port", "The IMAP server's port. Default is 143." , "PORT" add_command "imap_user", "Sets your username for IMAP only.", "USERNAME" add_command "imap_auth", "Configure authentication mechanism for your IMAP account\n" + ("plain", "plain", "login", "cram_md5"), "AUTHENTICATION" add_command "imap_crypt", "Configure encryption for your IMAP account.\n" + ("none", "none", "tls"), "SECURITY" add_command "imap_cert", "Set the certificate for your IMAP account.", "PATH_TO_CERTIFICATE" add_command "imap_no_cert", "Don't use a certificate for your IMAP account." add_command "imap_verify", "Verify the authenticity of your IMAP provider using certificates. Default: no.", "yes/no" @same_pass = true @smtp_port = 25 @smtp_starttls = false @smtp_tls = false @smtp_login = false @smtp_cram_md5 = false @imap_port = 143 @imap_tls = false @imap_login = false @imap_cram_md5 = false @imap_verify = false end |
Instance Method Details
#description ⇒ Object
182 183 184 |
# File 'lib/carps/wizard/steps.rb', line 182 def description "Configure your email account settings." end |