Sha256: 85f2671c68d32ba4384aae6fdee2c84a0a30a1d159d563ca2b18a462de2070ae

Contents?: true

Size: 871 Bytes

Versions: 9

Compression:

Stored size: 871 Bytes

Contents

class KuberKit::Core::ContextHelper::ContextHelperFactory
  include KuberKit::Import[
    "core.image_store",
    "core.artifact_store",
    template_renderer: "template_reader.renderer",
    env_file_reader:   "env_file_reader.action_handler"
  ]

  def build_image_context(shell, image)
    KuberKit::Core::ContextHelper::ImageHelper.new(
      image_store:      image_store,
      artifact_store:   artifact_store,
      shell:            shell,
      env_file_reader:  env_file_reader,
      image:            image
    )
  end

  def build_service_context(shell, service)
    KuberKit::Core::ContextHelper::ServiceHelper.new(
      image_store:      image_store,
      artifact_store:   artifact_store,
      shell:            shell,
      env_file_reader:  env_file_reader,
      service:          service,
      template_renderer: template_renderer
    )
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuber_kit-1.3.8 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.3.7 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.1.8 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.3.6 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.1.7 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.3.5 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.3.4 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.1.6 lib/kuber_kit/core/context_helper/context_helper_factory.rb
kuber_kit-1.3.3 lib/kuber_kit/core/context_helper/context_helper_factory.rb