Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
sys
Commits
8c77dbf2
Commit
8c77dbf2
authored
Jul 01, 2022
by
Christopher Huhn
Browse files
Template slightly straightend out
parent
9fd21a83
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/default/systemd_unit_generic.erb
View file @
8c77dbf2
<%=
template_header
%>
<%
Hash
[
@config
.
sort
].
each
do
|
section
,
attributes
|
-%>
<%
-
Hash
[
@config
.
sort
].
each
do
|
section
,
attributes
|
-%>
[
<%=
section
%>
]
<%
Hash
[
attributes
.
sort
].
each
do
|
key
,
value
|
value
=
value
.
join
(
' '
)
if
value
.
kind_of?
(
Array
)
-%>
<%=
key
%>
=
<%=
value
%>
<%
end
-%>
<%-
Hash
[
attributes
.
sort
].
each
do
|
key
,
value
|
-%>
<%=
key
%>
=
<%=
value
.
kind_of?
(
Array
)
?
value
.
join
(
' '
)
:
value
%>
<%-
end
-%>
<%
end
-%>
<%
-
end
-%>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment