Welcome to mirror list, hosted at ThFree Co, Russian Federation.

smtp.rake « gitlab « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 23ad7577e3c9613decfb123ad7e6e40218ddf3f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

namespace :gitlab do
  namespace :smtp do
    namespace :secret do
      desc 'GitLab | SMTP | Secret | Write SMTP secrets'
      task write: [:environment] do
        content = $stdin.tty? ? $stdin.gets : $stdin.read
        Gitlab::EncryptedSmtpCommand.write(content)
      end

      desc 'GitLab | SMTP | Secret | Edit SMTP secrets'
      task edit: [:environment] do
        Gitlab::EncryptedSmtpCommand.edit
      end

      desc 'GitLab | SMTP | Secret | Show SMTP secrets'
      task show: [:environment] do
        Gitlab::EncryptedSmtpCommand.show
      end
    end
  end
end