Method: Pod::ExternalSources::PathSource#fetch

Defined in:
lib/cocoapods/external_sources/path_source.rb

#fetch(sandbox) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/cocoapods/external_sources/path_source.rb', line 9

def fetch(sandbox)
  title = "Fetching podspec for `#{name}` #{description}"
  UI.titled_section(title,  :verbose_prefix => '-> ') do
    podspec = podspec_path
    unless podspec.exist?
      raise Informative, "No podspec found for `#{name}` in " \
        "`#{declared_path}`"
    end
    store_podspec(sandbox, podspec, podspec.extname == '.json')
    is_absolute = absolute?(declared_path)
    sandbox.store_local_path(name, podspec.dirname, is_absolute)
    sandbox.remove_checkout_source(name)
  end
end