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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
751 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# frozen_string_literal: true
namespace :gitlab do
namespace :service_desk_email do
namespace :secret do
desc 'GitLab | Service Desk Email | Secret | Write Service Desk Email secrets'
task write: [:environment] do
content = $stdin.tty? ? $stdin.gets : $stdin.read
Gitlab::EncryptedServiceDeskEmailCommand.write(content)
end
desc 'GitLab | Service Desk Email | Secret | Edit Service Desk Email secrets'
task edit: [:environment] do
Gitlab::EncryptedServiceDeskEmailCommand.edit
end
desc 'GitLab | Service Desk Email | Secret | Show Service Desk Email secrets'
task show: [:environment] do
Gitlab::EncryptedServiceDeskEmailCommand.show
end
end
end
end