Sha256: 85c3368a35ab748c8d1b680d345c0aad2ea733b533ef6bfcca4f373bc4f9bc8b

Contents?: true

Size: 726 Bytes

Versions: 72

Compression:

Stored size: 726 Bytes

Contents

class KuberKit::ImageCompiler::Compiler
  include KuberKit::Import[
    "image_compiler.image_build_dir_creator",
    "image_compiler.image_builder",
    "core.context_helper_factory",
  ]

  Contract KuberKit::Shell::AbstractShell, KuberKit::Core::Image, String => Any
  def compile(shell, image, builds_dir)
    image_build_dir = File.join(builds_dir, image.name.to_s)

    context_helper = context_helper_factory.build_image_context(shell, image)
    image_build_dir_creator.create(shell, image, image_build_dir, context_helper: context_helper)

    result = image_builder.build(shell, image, image_build_dir, context_helper: context_helper)
    image_build_dir_creator.cleanup(shell, image_build_dir)

    result
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
kuber_kit-0.8.3 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.8.2 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.8.1 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.8.0 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.7.1 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.7.0 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.6.4 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.6.3 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.6.2 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.6.1 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.6.0 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.10 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.9 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.8 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.7 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.6 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.5 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.4 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.3 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.5.2 lib/kuber_kit/image_compiler/compiler.rb