Method: Fetchers::Local.resolve

Defined in:
lib/fetchers/local.rb

.resolve(target) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/fetchers/local.rb', line 8

def self.resolve(target)
  if target.is_a?(String)
    local_path = resolve_from_string(target)
    new(local_path) if local_path
  elsif target.is_a?(Hash)
    local_path = resolve_from_hash(target)
    new(local_path, target) if local_path
  end
end