Class: KuberKit::Core::ContextHelper::ServiceHelper
- Inherits:
-
BaseHelper
- Object
- BaseHelper
- KuberKit::Core::ContextHelper::ServiceHelper
- Defined in:
- lib/kuber_kit/core/context_helper/service_helper.rb
Constant Summary
Constants inherited from BaseHelper
Instance Attribute Summary
Attributes inherited from BaseHelper
#artifact_store, #env_file_reader, #image_store, #shell
Instance Method Summary collapse
- #attribute(attribute_name, default: nil) ⇒ Object
-
#initialize(image_store:, artifact_store:, shell:, env_file_reader:, service:) ⇒ ServiceHelper
constructor
A new instance of ServiceHelper.
- #service_name ⇒ Object
- #service_uri ⇒ Object
Methods inherited from BaseHelper
#artifact_path, #configuration_name, #env_file, #get_binding, #global_build_args, #global_build_vars, #image_url
Constructor Details
#initialize(image_store:, artifact_store:, shell:, env_file_reader:, service:) ⇒ ServiceHelper
Returns a new instance of ServiceHelper.
2 3 4 5 6 7 8 9 10 |
# 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 |
Instance Method Details
#attribute(attribute_name, default: nil) ⇒ Object
20 21 22 |
# 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 ⇒ Object
12 13 14 |
# File 'lib/kuber_kit/core/context_helper/service_helper.rb', line 12 def service_name @service.name.to_s end |
#service_uri ⇒ Object
16 17 18 |
# File 'lib/kuber_kit/core/context_helper/service_helper.rb', line 16 def service_uri @service.uri end |