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
end
# rubocop:disable Metrics/BlockLength
initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |_app|
Foreman::Plugin.register :foreman_notification_send do
requires_foreman '>= 3.0'
settings do
category :notification_send, N_('Notification Send') do
setting 'notification_send_enable',
type: :boolean,
description: N_('Enable'),
default: false,
full_name: N_('Enable')
setting 'notification_send_target_url',
type: :string,
description: N_('Target URI'),
default: 'https://matrix.org',
full_name: N_('Target URI')
setting 'notification_send_target_room',
type: :string,
description: N_('Target Room'),
default: '#test:matrix.org',
full_name: N_('Target Room')
setting 'notification_send_token',
type: :string,
description: N_('Token'),
default: 'syt_abcdefg',
full_name: N_('Token')
initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |app|
app.reloader.to_prepare do
Foreman::Plugin.register :foreman_notification_send do
requires_foreman '>= 3.12'
settings do
category :notification_send, N_('Notification Send') do
setting 'notification_send_enable',
type: :boolean,
description: N_('Enable'),
default: false,
full_name: N_('Enable')
setting 'notification_send_target_url',
type: :string,
description: N_('Target URI'),
default: 'https://matrix.org',
full_name: N_('Target URI')
setting 'notification_send_target_room',
type: :string,
description: N_('Target Room'),
default: '#test:matrix.org',
full_name: N_('Target Room')
setting 'notification_send_token',
type: :string,
description: N_('Token'),
default: 'syt_abcdefg',
full_name: N_('Token')
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