debian-mirror-gitlab/lib/tasks/gitlab/incoming_email.rake

24 lines
714 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# 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