Sha256: 292e53f7ef3f1394cda5a71f49bcfd50c6d3aeef40a3ca3200bec9edb69a1a00
Contents?: true
Size: 954 Bytes
Versions: 16
Compression:
Stored size: 954 Bytes
Contents
class Indocker::Launchers::ImagesCompiler def initialize(logger) @logger = logger end def compile(configuration:, image_list:, skip_dependent:) preload_images(configuration, image_list) build_context = Indocker::BuildContext.new( configuration: configuration, logger: @logger, global_logger: Indocker.global_logger ) image_compiler = Indocker::Images::ImageCompiler.new image_list.each do |image_name| image = Indocker.configuration.images.detect do |i| i.name == image_name end image_compiler.compile(build_context, image, skip_dependent) end end private def preload_images(configuration, image_list) image_list.each do |image_name| image_path = Indocker.image_files.fetch(image_name) do @logger.error("image not found :#{image_name} in configuration :#{configuration.name}") exit 1 end require image_path end end end
Version data entries
16 entries across 16 versions & 1 rubygems