Class: Pod::Installer::PostInstallHooksContext

Inherits:
Object
  • Object
show all
Defined in:
lib/swordfish/hmap/post_install_hook_context.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregate_targetsObject

Returns the value of attribute aggregate_targets.



6
7
8
# File 'lib/swordfish/hmap/post_install_hook_context.rb', line 6

def aggregate_targets
  @aggregate_targets
end

Class Method Details

.generate(sandbox, pods_project, aggregate_targets) ⇒ Object

PostInstallHooksContext inherited from BaseContext, just override ‘generate`



32
33
34
35
36
37
# File 'lib/swordfish/hmap/post_install_hook_context.rb', line 32

def generate(sandbox, aggregate_targets)
  context = old_generate(sandbox, aggregate_targets)
  UI.info "- generate method of post install hook context hooked"
  context.aggregate_targets = aggregate_targets
  context
end

.old_generateObject



11
12
13
14
15
16
# File 'lib/swordfish/hmap/post_install_hook_context.rb', line 11

def generate(sandbox, aggregate_targets)
  context = old_generate(sandbox, aggregate_targets)
  UI.info "- generate method of post install hook context hooked"
  context.aggregate_targets = aggregate_targets
  context
end