Class: IvyRepo

Inherits:
Object
  • Object
show all
Defined in:
lib/jlauncher/repos.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ IvyRepo

Returns a new instance of IvyRepo.



58
59
60
# File 'lib/jlauncher/repos.rb', line 58

def initialize(path)
    @path = path
end

Instance Method Details

#cache_path(coordinates) ⇒ Object

for now we only support going for jars, thus no type or classifier or even platform here (to be honest mostly the latter may be interesting for us)



70
71
72
# File 'lib/jlauncher/repos.rb', line 70

def cache_path(coordinates)
    File.join(@path, "cache", coordinates.local_ivy_path)
end

#local_path(coordinates) ⇒ Object

for now we only support going for jars, thus no type or classifier or even platform here (to be honest mostly the latter may be interesting for us)



64
65
66
# File 'lib/jlauncher/repos.rb', line 64

def local_path(coordinates)
    File.join(@path,"local", coordinates.local_ivy_path)
end