Sha256: 3dd5e91fdabbeb7bce739de8d23852a6743462cc54488b7ca2538beae8ce1fd8
Contents?: true
Size: 916 Bytes
Versions: 6
Compression:
Stored size: 916 Bytes
Contents
class KuberKit::Core::ContextHelper::BaseHelper CONTRACT = RespondTo[:get_binding] attr_reader :shell, :artifact_store, :image_store, :env_file_reader def initialize(image_store:, artifact_store:, shell:, env_file_reader:) @image_store = image_store @artifact_store = artifact_store @shell = shell @env_file_reader = env_file_reader end def image_url(image_name) image = @image_store.get_image(image_name.to_sym) image.remote_registry_url end def artifact_path(name, file_name = nil) artifact = @artifact_store.get(name.to_sym) [artifact.cloned_path, file_name].compact.join("/") end def env_file(env_file_name) @env_file_reader.call(@shell, env_file_name) end def configuration_name KuberKit.current_configuration.name end def global_build_vars KuberKit.global_build_vars end def get_binding binding end end
Version data entries
6 entries across 6 versions & 1 rubygems