gitlab-org--gitlab-foss/lib/gitlab/encrypted_smtp_command.rb

23 lines
500 B
Ruby

# frozen_string_literal: true
# rubocop:disable Rails/Output
module Gitlab
class EncryptedSmtpCommand < EncryptedCommandBase
DISPLAY_NAME = "SMTP"
EDIT_COMMAND_NAME = "gitlab:smtp:secret:edit"
class << self
def encrypted_secrets
Gitlab::Email::SmtpConfig.encrypted_secrets
end
def encrypted_file_template
<<~YAML
# password: '123'
# user_name: 'gitlab-inst'
YAML
end
end
end
end
# rubocop:enable Rails/Output