Class: MilkTea::PackageSourceResolver::PathIdentity

Inherits:
SourceIdentity show all
Defined in:
lib/milk_tea/packages/source_resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SourceIdentity

#cache_key, #cacheable?

Constructor Details

#initialize(path) ⇒ PathIdentity

Returns a new instance of PathIdentity.



34
35
36
# File 'lib/milk_tea/packages/source_resolver.rb', line 34

def initialize(path)
  @path = File.expand_path(path)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



32
33
34
# File 'lib/milk_tea/packages/source_resolver.rb', line 32

def path
  @path
end

Instance Method Details

#kindObject



38
39
40
# File 'lib/milk_tea/packages/source_resolver.rb', line 38

def kind
  :path
end

#lock_attributesObject



42
43
44
45
46
# File 'lib/milk_tea/packages/source_resolver.rb', line 42

def lock_attributes
  {
    "source_path" => @path,
  }
end