Sha256: b6f41776244c051db3544b9f2f663e5fbe6f870ba877da2a368428fe2505ed0a

Contents?: true

Size: 631 Bytes

Versions: 18

Compression:

Stored size: 631 Bytes

Contents

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

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

    build_dir_cleaner.call(parent_dir: configs.image_compile_dir)
    
    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

18 entries across 18 versions & 1 rubygems

Version Path
kuber_kit-0.9.1 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.9.0 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.8 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.7 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.6 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.5 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.4 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.3 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.2 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.1 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.8.0 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.7.1 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.7.0 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.6.4 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.6.3 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.6.2 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.6.1 lib/kuber_kit/image_compiler/action_handler.rb
kuber_kit-0.6.0 lib/kuber_kit/image_compiler/action_handler.rb