Class: KuberKit::Core::Templates::ArtifactFile

Inherits:
AbstractTemplate show all
Defined in:
lib/kuber_kit/core/templates/artifact_file.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractTemplate

#name

Instance Method Summary collapse

Methods included from Extensions::Inspectable

#inspect

Constructor Details

#initialize(template_name, artifact_name:, file_path:) ⇒ ArtifactFile

Returns a new instance of ArtifactFile.



4
5
6
7
8
# File 'lib/kuber_kit/core/templates/artifact_file.rb', line 4

def initialize(template_name, artifact_name:, file_path:)
  super(template_name)
  @artifact_name = artifact_name
  @file_path = file_path
end

Instance Attribute Details

#artifact_nameObject (readonly)

Returns the value of attribute artifact_name.



2
3
4
# File 'lib/kuber_kit/core/templates/artifact_file.rb', line 2

def artifact_name
  @artifact_name
end

#file_pathObject (readonly)

Returns the value of attribute file_path.



2
3
4
# File 'lib/kuber_kit/core/templates/artifact_file.rb', line 2

def file_path
  @file_path
end