forked from thooge/redmine_contacts_helpdesk_gpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
30 lines (24 loc) · 1.13 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'redmine_contacts_helpdesk_gpg'
Rails.logger.info 'Starting GPG Helper Plugin for RedmineUP\'s Helpdesk Plugin'
# Plugin definition
Redmine::Plugin.register :redmine_contacts_helpdesk_gpg do
name 'Redmine Contacts Helpdesk GPG'
author 'darkstarSH / Alphanodes GmbH / Tobias Stenzel'
description 'This is a plugin for Redmine to use GPG signing/encryption in RedmineUP\'s helpdesk'
version '20.05.0'
url 'https://github.com/piratenpartei/redmine_contacts_helpdesk_gpg'
requires_redmine version_or_higher: '4.0'
requires_redmine_plugin :redmine_contacts, version_or_higher: '4.2.1'
requires_redmine_plugin :redmine_contacts_helpdesk, version_or_higher: '4.1.0'
settings default: {
gpg_keyrings_dir: ENV['GNUPGHOME'] || '~/.gnupg',
gpg_keyserver: 'http://pool.sks-keyservers.net:11371',
gpg_bin_dir: ''
}, partial: 'settings/gpg_settings'
menu :admin_menu, :gpg_keystore, { controller: 'gpgkeys', action: 'index' }, caption: :label_gpg_keystore, param: nil, html: { class: 'icon' }
end
if ActiveRecord::Base.connection.table_exists?(:settings)
Rails.configuration.to_prepare do
HelpDeskGPG.setup
end
end