debian-mirror-gitlab/lib/tasks/gitlab/incoming_email.rake
2023-04-23 21:23:45 +05:30

23 lines
714 B
Ruby

# 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