Sha256: eb01b625731fadfb70ef9143d8e6cea881e3c4084d27cba990598035ef8faf8c
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
class KuberKit::Core::ContextHelper::BaseHelper < KuberKit::Core::ContextHelper::AbstractHelper 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 global_build_args unless KuberKit.deprecation_warnings_disabled? puts "DEPRECATION: global_build_args is deprecated, please use global_build_vars instead" end global_build_vars end end
Version data entries
9 entries across 9 versions & 1 rubygems