Sha256: 20b996ce9d6d410b8423661b2a3f63224b90c2a55de4d3b321e80dcd0a3d93e2

Contents?: true

Size: 698 Bytes

Versions: 13

Compression:

Stored size: 698 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_build_dir_creator.create(shell, image, image_build_dir, context_helper: context_helper)

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kuber_kit-0.2.8 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.7 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.6 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.5 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.4 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.3 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.2 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.1 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.2.0 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.1.9 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.1.8 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.1.7 lib/kuber_kit/image_compiler/compiler.rb
kuber_kit-0.1.6 lib/kuber_kit/image_compiler/compiler.rb