2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/indocker/configurations/formatters/stdout.rb', line 2
def print(configuration)
c = configuration
<<~EOS
Name: #{c.name}
Repositories: {
#{c.repositories.map do |alias_name, repository|
" #{alias_name}: #{repository.inspect}"
end.join("\n")}
}
Registries: {
#{c.registries.map do |alias_name, registry|
" #{alias_name}: #{registry.inspect}"
end.join("\n")}
}
Servers: {
#{c.servers.map do |alias_name, server|
" #{alias_name}: #{server.inspect}"
end.join("\n")}
}
Build Servers: [
#{c.build_servers.map do |build_server|
" #{build_server.inspect}"
end.join("\n")}
]
Tags: #{c.tags.inspect}
Global build args: #{c.global_build_args.inspect}
EOS
end
|