diff options
Diffstat (limited to 'lib/tasks/gitlab/incoming_email.rake')
-rw-r--r-- | lib/tasks/gitlab/incoming_email.rake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/incoming_email.rake b/lib/tasks/gitlab/incoming_email.rake new file mode 100644 index 00000000000..eaceeb91ad0 --- /dev/null +++ b/lib/tasks/gitlab/incoming_email.rake @@ -0,0 +1,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 |