Class: CocoapodsMangle::PostInstall
- Inherits:
-
Object
- Object
- CocoapodsMangle::PostInstall
- Defined in:
- lib/cocoapods_mangle/post_install.rb
Overview
Runs the post mangling post install action
Instance Method Summary collapse
-
#config ⇒ CocoapodsMangle::Config
The mangling config object.
-
#initialize(context) ⇒ PostInstall
constructor
A new instance of PostInstall.
-
#run! ⇒ Object
Run the post install action.
Constructor Details
#initialize(context) ⇒ PostInstall
Returns a new instance of PostInstall.
8 9 10 |
# File 'lib/cocoapods_mangle/post_install.rb', line 8 def initialize(context) @context = context end |
Instance Method Details
#config ⇒ CocoapodsMangle::Config
Returns The mangling config object.
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 |