Class: KuberKit::Core::EnvFiles::ArtifactFile
- Inherits:
-
AbstractEnvFile
- Object
- AbstractEnvFile
- KuberKit::Core::EnvFiles::ArtifactFile
- Defined in:
- lib/kuber_kit/core/env_files/artifact_file.rb
Instance Attribute Summary collapse
-
#artifact_name ⇒ Object
readonly
Returns the value of attribute artifact_name.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Attributes inherited from AbstractEnvFile
Instance Method Summary collapse
-
#initialize(env_file_name, artifact_name:, file_path:) ⇒ ArtifactFile
constructor
A new instance of ArtifactFile.
- #uniq_name ⇒ Object
Methods included from Extensions::Inspectable
Constructor Details
#initialize(env_file_name, artifact_name:, file_path:) ⇒ ArtifactFile
Returns a new instance of ArtifactFile.
4 5 6 7 8 |
# File 'lib/kuber_kit/core/env_files/artifact_file.rb', line 4 def initialize(env_file_name, artifact_name:, file_path:) super(env_file_name) @artifact_name = artifact_name @file_path = file_path end |
Instance Attribute Details
#artifact_name ⇒ Object (readonly)
Returns the value of attribute artifact_name.
2 3 4 |
# File 'lib/kuber_kit/core/env_files/artifact_file.rb', line 2 def artifact_name @artifact_name end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
2 3 4 |
# File 'lib/kuber_kit/core/env_files/artifact_file.rb', line 2 def file_path @file_path end |
Instance Method Details
#uniq_name ⇒ Object
10 11 12 |
# File 'lib/kuber_kit/core/env_files/artifact_file.rb', line 10 def uniq_name [@artifact_name.to_s, @name.to_s].join("-") end |