Class: KuberKit::Core::Artifacts::Local

Inherits:
AbstractArtifact show all
Defined in:
lib/kuber_kit/core/artifacts/local.rb

Instance Attribute Summary

Attributes inherited from AbstractArtifact

#name

Instance Method Summary collapse

Methods inherited from AbstractArtifact

#initialize, #namespace

Methods included from Extensions::Inspectable

#inspect

Constructor Details

This class inherits a constructor from KuberKit::Core::Artifacts::AbstractArtifact

Instance Method Details

#cleanup_needed?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/kuber_kit/core/artifacts/local.rb', line 19

def cleanup_needed?
  false
end

#cloned_pathObject



11
12
13
# File 'lib/kuber_kit/core/artifacts/local.rb', line 11

def cloned_path
  root_path
end

#root_pathObject



7
8
9
# File 'lib/kuber_kit/core/artifacts/local.rb', line 7

def root_path
  @root_path || (raise ArgumentError.new("root path was not set. Set it using setup method"))
end

#setup(root_path) ⇒ Object



2
3
4
5
# File 'lib/kuber_kit/core/artifacts/local.rb', line 2

def setup(root_path)
  @root_path = File.expand_path(root_path)
  self
end

#sync_descriptionObject



15
16
17
# File 'lib/kuber_kit/core/artifacts/local.rb', line 15

def sync_description
  "local"
end