Class: Gitlab::EncryptedServiceDeskEmailCommand

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

Constant Summary collapse

DISPLAY_NAME =
"SERVICE_DESK_EMAIL"
EDIT_COMMAND_NAME =
"gitlab:service_desk_email: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_service_desk_email_command.rb', line 14

def encrypted_file_template
  <<~YAML
    # password: '123'
    # user: '[email protected]'
  YAML
end

.encrypted_secretsObject



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

def encrypted_secrets
  Gitlab::Email::ServiceDeskEmail.encrypted_secrets
end