Class: LockJar::Domain::Local

Inherits:
Artifact
  • Object
show all
Defined in:
lib/lock_jar/domain/artifact.rb

Instance Attribute Summary collapse

Attributes inherited from Artifact

#type

Instance Method Summary collapse

Methods inherited from Artifact

#<=>

Constructor Details

#initialize(path) ⇒ Local

Returns a new instance of Local.



59
60
61
62
# File 'lib/lock_jar/domain/artifact.rb', line 59

def initialize(path)
  @type = 'local'
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



58
59
60
# File 'lib/lock_jar/domain/artifact.rb', line 58

def path
  @path
end

Instance Method Details

#resolvable?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/lock_jar/domain/artifact.rb', line 72

def resolvable?
  false
end

#to_depObject



68
69
70
# File 'lib/lock_jar/domain/artifact.rb', line 68

def to_dep
  path
end

#to_urnObject



64
65
66
# File 'lib/lock_jar/domain/artifact.rb', line 64

def to_urn
  "local:#{path}"
end