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.



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

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#resolvable?Boolean

Returns:

  • (Boolean)


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

def resolvable?
  false
end

#to_depObject



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

def to_dep
  path
end

#to_urnObject



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

def to_urn
  "local:#{path}"
end