Skip to content
Snippets Groups Projects
Verified Commit cf708e17 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Prepare for zeitwerk

parent 045f722a
No related branches found
No related tags found
No related merge requests found
Pipeline #142281 passed
...@@ -14,35 +14,37 @@ module ForemanNotificationSend ...@@ -14,35 +14,37 @@ module ForemanNotificationSend
end end
# rubocop:disable Metrics/BlockLength # rubocop:disable Metrics/BlockLength
initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |_app| initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |app|
Foreman::Plugin.register :foreman_notification_send do app.reloader.to_prepare do
requires_foreman '>= 3.0' Foreman::Plugin.register :foreman_notification_send do
requires_foreman '>= 3.12'
settings do
category :notification_send, N_('Notification Send') do settings do
setting 'notification_send_enable', category :notification_send, N_('Notification Send') do
type: :boolean, setting 'notification_send_enable',
description: N_('Enable'), type: :boolean,
default: false, description: N_('Enable'),
full_name: N_('Enable') default: false,
full_name: N_('Enable')
setting 'notification_send_target_url',
type: :string, setting 'notification_send_target_url',
description: N_('Target URI'), type: :string,
default: 'https://matrix.org', description: N_('Target URI'),
full_name: N_('Target URI') default: 'https://matrix.org',
full_name: N_('Target URI')
setting 'notification_send_target_room',
type: :string, setting 'notification_send_target_room',
description: N_('Target Room'), type: :string,
default: '#test:matrix.org', description: N_('Target Room'),
full_name: N_('Target Room') default: '#test:matrix.org',
full_name: N_('Target Room')
setting 'notification_send_token',
type: :string, setting 'notification_send_token',
description: N_('Token'), type: :string,
default: 'syt_abcdefg', description: N_('Token'),
full_name: N_('Token') default: 'syt_abcdefg',
full_name: N_('Token')
end
end end
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment