Method: Pod::Installer::PodSourcePreparer#initialize

Defined in:
lib/cocoapods/installer/pod_source_preparer.rb

#initialize(spec, path) ⇒ PodSourcePreparer

Initialize a new instance

Parameters:

  • spec (Specification)

    the root specification of the Pod.

  • path (Pathname)

    the folder where the source of the Pod is located.



20
21
22
23
24
# File 'lib/cocoapods/installer/pod_source_preparer.rb', line 20

def initialize(spec, path)
  raise "Given spec isn't a root spec, but must be." unless spec.root?
  @spec = spec
  @path = path
end