Method: Jars.lock_path
- Defined in:
- lib/jar_dependencies.rb
permalink .lock_path(basedir = nil) ⇒ Object
[View source]
124 125 126 127 128 129 130 131 132 133 |
# File 'lib/jar_dependencies.rb', line 124 def lock_path( basedir = nil ) deps = self.lock return deps if File.exists?( deps ) basedir ||= '.' [ '.', 'jars', 'vendor/jars' ].each do |dir| file = File.join( basedir, dir, self.lock ) return file if File.exists?( file ) end nil end |