Class: Gitlab::EncryptedSmtpCommand

Inherits:
EncryptedCommandBase show all
Defined in:
lib/gitlab/encrypted_smtp_command.rb

Constant Summary collapse

DISPLAY_NAME =
"SMTP"
EDIT_COMMAND_NAME =
"gitlab:smtp:secret:edit"

Class Method Summary collapse

Methods inherited from EncryptedCommandBase

edit, show, validate_config, validate_contents, write

Class Method Details

.encrypted_file_templateObject



14
15
16
17
18
19
# File 'lib/gitlab/encrypted_smtp_command.rb', line 14

def encrypted_file_template
  <<~YAML
    # password: '123'
    # user_name: 'gitlab-inst'
  YAML
end

.encrypted_secretsObject



10
11
12
# File 'lib/gitlab/encrypted_smtp_command.rb', line 10

def encrypted_secrets
  Gitlab::Email::SmtpConfig.encrypted_secrets
end