22 lines
		
	
	
		
			480 B
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			480 B
		
	
	
	
		
			Ruby
		
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| module Gitlab
 | |
|   class EncryptedIncomingEmailCommand < EncryptedCommandBase
 | |
|     DISPLAY_NAME = "INCOMING_EMAIL"
 | |
|     EDIT_COMMAND_NAME = "gitlab:incoming_email:secret:edit"
 | |
| 
 | |
|     class << self
 | |
|       def encrypted_secrets
 | |
|         Gitlab::Email::IncomingEmail.encrypted_secrets
 | |
|       end
 | |
| 
 | |
|       def encrypted_file_template
 | |
|         <<~YAML
 | |
|           # password: '123'
 | |
|           # user: 'gitlab-incoming@gmail.com'
 | |
|         YAML
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |