Class: CocoapodsMangle::PostInstall

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods_mangle/post_install.rb

Overview

Runs the post mangling post install action

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ PostInstall

Returns a new instance of PostInstall.

Parameters:



8
9
10
# File 'lib/cocoapods_mangle/post_install.rb', line 8

def initialize(context)
  @context = context
end

Instance Method Details

#configCocoapodsMangle::Config

Returns The mangling config object.

Returns:



19
20
21
# File 'lib/cocoapods_mangle/post_install.rb', line 19

def config
  @config ||= CocoapodsMangle::Config.new(@context)
end

#run!Object

Run the post install action



13
14
15
16
# File 'lib/cocoapods_mangle/post_install.rb', line 13

def run!
  config.update_mangling! if config.needs_update?
  config.update_pod_xcconfigs_for_mangling!
end