Method: Lyp::DependencyResolver#process_require_command
- Defined in:
- lib/lyp/resolver.rb
#process_require_command(ref, dir, leaf, opts, location) ⇒ Object
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/lyp/resolver.rb', line 228 def process_require_command(ref, dir, leaf, opts, location) forced_path = nil if ref =~ /^([^\:]+)\:(.+)$/ ref = $1 forced_path = File.($2, dir) end ref =~ Lyp::PACKAGE_RE package, version = $1, $2 return if package == 'null' # set forced path if applicable if forced_path set_forced_package_path(package, forced_path) end find_package_versions(ref, leaf, location) end |