Class: Pod::Installer::PreInstallHooksContext

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/installer/pre_install_hooks_context.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#lockfileLockfile



21
22
23
# File 'lib/cocoapods/installer/pre_install_hooks_context.rb', line 21

def lockfile
  @lockfile
end

#podfilePodfile



13
14
15
# File 'lib/cocoapods/installer/pre_install_hooks_context.rb', line 13

def podfile
  @podfile
end

#sandboxSandbox



17
18
19
# File 'lib/cocoapods/installer/pre_install_hooks_context.rb', line 17

def sandbox
  @sandbox
end

#sandbox_rootString



9
10
11
# File 'lib/cocoapods/installer/pre_install_hooks_context.rb', line 9

def sandbox_root
  @sandbox_root
end

Class Method Details

.generate(sandbox, podfile, lockfile) ⇒ PreInstallHooksContext



32
33
34
35
36
37
38
39
# File 'lib/cocoapods/installer/pre_install_hooks_context.rb', line 32

def self.generate(sandbox, podfile, lockfile)
  result = new
  result.podfile = podfile
  result.sandbox = sandbox
  result.sandbox_root = sandbox.root.to_s
  result.lockfile = lockfile
  result
end