Sha256: 5717e765b75ec66502b99dfe10595271ada78f60d00827d0c55df7de0f350833

Contents?: true

Size: 843 Bytes

Versions: 17

Compression:

Stored size: 843 Bytes

Contents

class Indocker::Configurations::Formatters::Stdout
  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
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
indocker-0.1.16 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.15 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.14 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.13 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.12 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.11 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.10 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.9 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.8 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.7 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.6 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.5 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.4 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.3 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.2 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.1 lib/indocker/configurations/formatters/stdout.rb
indocker-0.1.0 lib/indocker/configurations/formatters/stdout.rb