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

incoming_email.rake « gitlab « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eaceeb91ad00b3b79cd12f58b7bc32338c5eb9a1 (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 :incoming_email do
    namespace :secret do
      desc 'GitLab | Incoming Email | Secret | Write Incoming Email secrets'
      task write: [:environment] do
        content = $stdin.tty? ? $stdin.gets : $stdin.read
        Gitlab::EncryptedIncomingEmailCommand.write(content)
      end

      desc 'GitLab | Incoming Email | Secret | Edit Incoming Email secrets'
      task edit: [:environment] do
        Gitlab::EncryptedIncomingEmailCommand.edit
      end

      desc 'GitLab | Incoming Email | Secret | Show Incoming Email secrets'
      task show: [:environment] do
        Gitlab::EncryptedIncomingEmailCommand.show
      end
    end
  end
end