class KuberKit::Core::Artifacts::ArtifactStore
Public Instance Methods
add(artifact)
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 2 def add(artifact) store.add(artifact.name, artifact) end
exists?(artifact_name)
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 29 def exists?(artifact_name) store.exists?(artifact_name) end
get(artifact_name)
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 7 def get(artifact_name) artifact = get_from_configuration(artifact_name) || get_global(artifact_name) artifact end
get_from_configuration(artifact_name)
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 20 def get_from_configuration(artifact_name) artifacts = KuberKit.current_configuration.artifacts artifacts[artifact_name] end
get_global(artifact_name)
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 15 def get_global(artifact_name) store.get(artifact_name) end
reset!()
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 25 def reset! store.reset! end
Private Instance Methods
store()
click to toggle source
# File lib/kuber_kit/core/artifacts/artifact_store.rb, line 34 def store @@store ||= KuberKit::Core::Store.new(KuberKit::Core::Artifacts::AbstractArtifact) end