| Class | Raven::Artifact |
| In: |
lib/raven/repo_builder.rb
|
| Parent: | Object |
Representation of a repository artifact. Mostly based on Maven with all the groupId and artifactId crap.
| artifactId | [R] | |
| groupId | [R] | |
| path | [R] | |
| server | [RW] | |
| versionId | [R] |
# File lib/raven/repo_builder.rb, line 29
29: def initialize(groupId, artifactId, versionId, path)
30: @groupId, @artifactId, @versionId, @path = groupId, artifactId, versionId, path
31: end
# File lib/raven/repo_builder.rb, line 39
39: def eql?(art)
40: false if art.class != Artifact
41: art.groupId == @groupId && art.artifactId == @artifactId && art.versionId == @versionId
42: end
# File lib/raven/repo_builder.rb, line 44
44: def hash
45: @groupId.hash ^ (@artifactId.hash << 1) ^ (@versionId.hash << 2)
46: end
# File lib/raven/repo_builder.rb, line 48
48: def to_s
49: "#{artifactId} v#{versionId} (project #{groupId})"
50: end