Sha256: 57a0b0602f18b25cc932d81a29bda3abcfd81f6e28f9231e7a0f11d73734c359

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

class KuberKit::ImageCompiler::ActionHandler
  include KuberKit::Import[
    "image_compiler.compiler",
    "core.image_store",
    "configs",
  ]

  Contract KuberKit::Shell::AbstractShell, Symbol, String => Any
  def call(shell, image_name, build_id)
    image = image_store.get_image(image_name)
    
    compile_dir = generate_compile_dir(build_id: build_id)

    compiler.compile(shell, image, compile_dir)
  end

  def generate_compile_dir(build_id:)
    File.join(configs.image_compile_dir, build_id)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kuber_kit-0.1.6 lib/kuber_kit/image_compiler/action_handler.rb