class Pod::Installer::PreInstallHooksContext

Context object designed to be used with the HooksManager which describes the context of the installer before analysis has been completed.

Attributes

lockfile[R]

@return [Lockfile] The Lockfile for the project.

podfile[R]

@return [Podfile] The Podfile for the project.

sandbox[R]

@return [Sandbox] The Sandbox for the project.

sandbox_root[R]

@return [String] The path to the sandbox root (‘Pods` directory).

Public Class Methods

generate(sandbox, podfile, lockfile) click to toggle source

@param [Sandbox] sandbox see {#sandbox}

@param [Podfile] podfile see {#podfile}

@param [Lockfile] lockfile see {#lockfile}

@return [PreInstallHooksContext] Convenience class method to generate the

static context.
# File lib/cocoapods/installer/pre_install_hooks_context.rb, line 46
def self.generate(sandbox, podfile, lockfile)
  new(podfile, sandbox, sandbox.root.to_s, lockfile)
end
new(podfile, sandbox, sandbox_root, lockfile) click to toggle source

Initialize a new instance

@param [Sandbox] sandbox see sandbox @param [String] sandbox_root see sandbox_root @param [Podfile] podfile see podfile @param [Lockfile] lockfile see lockfile

# File lib/cocoapods/installer/pre_install_hooks_context.rb, line 30
def initialize(podfile, sandbox, sandbox_root, lockfile)
  @podfile = podfile
  @sandbox = sandbox
  @sandbox_root = sandbox_root
  @lockfile = lockfile
end