Skip to content
Snippets Groups Projects
Commit ddce992d authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Formatting changes.

parent 66092a17
Branches
No related tags found
No related merge requests found
......@@ -5,16 +5,16 @@ define mpd::output (
) {
require ::mpd::server
$content_base = @("EOF")
audio_output {
type "${type}"
name "${name}"
| EOF
$base = {
type => $type,
name => $name,
}
$params = $base + $parameters
$content_aux = $parameters.map |$k, $v| { "${k} \"${v}\"\n" }.join()
$content_aux = $params.map |$k, $v| { " ${k} \"${v}\"\n" }.join()
concat::fragment { "mpd audio ${name}":
target => '/etc/mpd.conf',
content => "${content_base}${content_aux}}\n",
content => "audio_output {\n${content_aux}}\n",
}
}
......@@ -8,7 +8,7 @@ type Metadata = Variant[Enum['none'],
'date', 'composer', 'performer',
'comment', 'disc']]]
# See mpd(5)
# See mpd(5) along with https://mpd.readthedocs.io/en/stable/
# TODO
# audio_output, take mpd::output and get name
class mpd::server (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment