Select Git revision
dynamic_buffer.c
-
Fredrik Hübinette (Hubbe) authored
Rev: src/ChangeLog:1.157 Rev: src/README:1.8 Rev: src/acconfig.h:1.35 Rev: src/array.c:1.42 Rev: src/array.h:1.14 Rev: src/backend.c:1.40 Rev: src/builtin_functions.c:1.140 Rev: src/callback.c:1.15 Rev: src/compilation.h:1.13 Rev: src/configure.in:1.254 Rev: src/cpp.c:1.30 Rev: src/docode.c:1.42 Rev: src/dynamic_buffer.c:1.9 Rev: src/encode.c:1.26 Rev: src/error.c:1.22 Rev: src/error.h:1.25 Rev: src/fd_control.c:1.22 Rev: src/fdlib.h:1.21 Rev: src/gc.c:1.39 Rev: src/gc.h:1.20 Rev: src/global.h:1.26 Rev: src/hashtable.c:1.5 Rev: src/interpret.c:1.111 Rev: src/interpret.h:1.24 Rev: src/language.yacc:1.108 Rev: src/las.c:1.71 Rev: src/las.h:1.17 Rev: src/lex.c:1.58 Rev: src/lex.h:1.12 Rev: src/main.c:1.60 Rev: src/mapping.c:1.37 Rev: src/modules/Odbc/odbc.c:1.12 Rev: src/modules/Perl/.cvsignore:1.1 Rev: src/modules/Perl/Makefile.in:1.1 Rev: src/modules/Perl/configure.in:1.1 Rev: src/modules/Perl/perlmod.c:1.1 Rev: src/modules/Perl/testsuite.in:1.1 Rev: src/modules/Postgres/postgres.c:1.10 Rev: src/modules/Regexp/pike_regexp.c:1.13 Rev: src/modules/call_out/call_out.c:1.23 Rev: src/modules/files/file.c:1.128 Rev: src/modules/files/socket.c:1.40 Rev: src/modules/spider/spider.c:1.76 Rev: src/modules/sprintf/sprintf.c:1.31 Rev: src/multiset.c:1.12 Rev: src/object.c:1.53 Rev: src/opcodes.c:1.32 Rev: src/operators.c:1.44 Rev: src/peep.c:1.25 Rev: src/pike_memory.c:1.28 Rev: src/pike_types.c:1.49 Rev: src/pike_types.h:1.16 Rev: src/port.c:1.18 Rev: src/port.h:1.20 Rev: src/program.c:1.105 Rev: src/program.h:1.46 Rev: src/signal_handler.c:1.89 Rev: src/stralloc.c:1.50 Rev: src/stralloc.h:1.26 Rev: src/svalue.c:1.39 Rev: src/svalue.h:1.19 Rev: src/threads.c:1.85 Rev: src/threads.h:1.60
Fredrik Hübinette (Hubbe) authoredRev: src/ChangeLog:1.157 Rev: src/README:1.8 Rev: src/acconfig.h:1.35 Rev: src/array.c:1.42 Rev: src/array.h:1.14 Rev: src/backend.c:1.40 Rev: src/builtin_functions.c:1.140 Rev: src/callback.c:1.15 Rev: src/compilation.h:1.13 Rev: src/configure.in:1.254 Rev: src/cpp.c:1.30 Rev: src/docode.c:1.42 Rev: src/dynamic_buffer.c:1.9 Rev: src/encode.c:1.26 Rev: src/error.c:1.22 Rev: src/error.h:1.25 Rev: src/fd_control.c:1.22 Rev: src/fdlib.h:1.21 Rev: src/gc.c:1.39 Rev: src/gc.h:1.20 Rev: src/global.h:1.26 Rev: src/hashtable.c:1.5 Rev: src/interpret.c:1.111 Rev: src/interpret.h:1.24 Rev: src/language.yacc:1.108 Rev: src/las.c:1.71 Rev: src/las.h:1.17 Rev: src/lex.c:1.58 Rev: src/lex.h:1.12 Rev: src/main.c:1.60 Rev: src/mapping.c:1.37 Rev: src/modules/Odbc/odbc.c:1.12 Rev: src/modules/Perl/.cvsignore:1.1 Rev: src/modules/Perl/Makefile.in:1.1 Rev: src/modules/Perl/configure.in:1.1 Rev: src/modules/Perl/perlmod.c:1.1 Rev: src/modules/Perl/testsuite.in:1.1 Rev: src/modules/Postgres/postgres.c:1.10 Rev: src/modules/Regexp/pike_regexp.c:1.13 Rev: src/modules/call_out/call_out.c:1.23 Rev: src/modules/files/file.c:1.128 Rev: src/modules/files/socket.c:1.40 Rev: src/modules/spider/spider.c:1.76 Rev: src/modules/sprintf/sprintf.c:1.31 Rev: src/multiset.c:1.12 Rev: src/object.c:1.53 Rev: src/opcodes.c:1.32 Rev: src/operators.c:1.44 Rev: src/peep.c:1.25 Rev: src/pike_memory.c:1.28 Rev: src/pike_types.c:1.49 Rev: src/pike_types.h:1.16 Rev: src/port.c:1.18 Rev: src/port.h:1.20 Rev: src/program.c:1.105 Rev: src/program.h:1.46 Rev: src/signal_handler.c:1.89 Rev: src/stralloc.c:1.50 Rev: src/stralloc.h:1.26 Rev: src/svalue.c:1.39 Rev: src/svalue.h:1.19 Rev: src/threads.c:1.85 Rev: src/threads.h:1.60
unitfile.erb 1.89 KiB
<%#
# Copyright © 2021-2023 Thomas Bellman, Linköping, Sweden
# Licensed under the GNU LGPL v3+; see the README file for more information.
#
-%>
<% resource_ref = "Systemd::%s[%s]" % [ @systemd_resource_type, @title, ]
unit_comments = [@comment].flatten.join("\n").split("\n")
unit_comments.collect! { |cline| "# " + cline }
unit_comments << "\n" if unit_comments.length > 0
-%>
<%= unit_comments.join("\n") -%>
<%# -%>
<%# -%>
<%# Loop over sections ('Unit', 'Service', et.c) -%>
<% @options.sort.each do |section_name, section_options|
next if section_name =~ /^#/
section_comments = (@options['#'+section_name] or []).flatten().
join("\n").split("\n")
-%>
<%= section_comments.collect { |cline| "# " + cline + "\n" }.join("") -%>
[<%= section_name %>]
<%# # Loop over options in section -%>
<% section_options.sort.each do |optname,value| -%>
<%
# Override instead of append to list option.
# This is only valid if called from systemd::unit_options, not when
# called from systemd::unit.
if optname =~ /^-(.*)/
if @systemd_resource_type == 'Unit_options'
optname = $1
-%>
<%= optname %>=
<% elsif @systemd_resource_type == 'Unit'
raise(Puppet::ParseError,
"#{resource_ref}: Bad option name, ``#{optname}''")
else
raise(Puppet::ParseError,
"#{resource_ref}: Internal error: bad value for $systemd_resource_type, ``#{systemd_resource_type}''")
-%>
<% end -%>
<% end -%>
<% next if optname =~ /^#/ -%>
<% opt_comments = (section_options['#'+optname] or []).flatten().
join("\n").split("\n")
-%>
<%= opt_comments.collect { |cline| "# " + cline + "\n" }.join("") -%>
<% [value].flatten.each do |v| -%>
<%= optname %>=<%= v %>
<% end -%>
<% end %>
<% end -%>
# Managed by Puppet: <%= resource_ref %>