Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
foreman_notification_send
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU IT - Infrastructure
foreman_notification_send
Commits
cf708e17
Verified
Commit
cf708e17
authored
5 months ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for zeitwerk
parent
045f722a
No related branches found
No related tags found
No related merge requests found
Pipeline
#142281
passed
5 months ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/foreman_notification_send/engine.rb
+31
-29
31 additions, 29 deletions
lib/foreman_notification_send/engine.rb
with
31 additions
and
29 deletions
lib/foreman_notification_send/engine.rb
+
31
−
29
View file @
cf708e17
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment