Sha256: d64e9c01c83ce9f8921f48c37e22e5e1a04692b758064df24e95cb8de90c7b4d

Contents?: true

Size: 533 Bytes

Versions: 46

Compression:

Stored size: 533 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

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
kuber_kit-0.5.10 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.9 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.8 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.7 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.6 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.5 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.4 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.3 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.2 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.1 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.5.0 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.9 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.8 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.7 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.6 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.5 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.4 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.3 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.2 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.4.1 lib/kuber_kit/image_compiler/action_handler.rb