class KuberKit::Core::ContextHelper::ServiceHelper

Public Class Methods

new(image_store:, artifact_store:, shell:, env_file_reader:, service:) click to toggle source
# File lib/kuber_kit/core/context_helper/service_helper.rb, line 2
def initialize(image_store:, artifact_store:, shell:, env_file_reader:, service:)
  super(
    image_store:      image_store, 
    artifact_store:   artifact_store, 
    shell:            shell,
    env_file_reader:  env_file_reader
  )
  @service = service
end

Public Instance Methods

attribute(attribute_name, default: nil) click to toggle source
# File lib/kuber_kit/core/context_helper/service_helper.rb, line 20
def attribute(attribute_name, default: nil)
  @service.attribute(attribute_name, default: default)
end
service_name() click to toggle source
# File lib/kuber_kit/core/context_helper/service_helper.rb, line 12
def service_name
  @service.name.to_s
end
service_uri() click to toggle source
# File lib/kuber_kit/core/context_helper/service_helper.rb, line 16
def service_uri
  @service.uri
end