Class: PodPrebuild::PostInstallHook
- Inherits:
-
Object
- Object
- PodPrebuild::PostInstallHook
- Defined in:
- lib/cocoapods-binary-cache/hooks/post_install.rb
Instance Method Summary collapse
-
#initialize(installer_context) ⇒ PostInstallHook
constructor
A new instance of PostInstallHook.
- #run ⇒ Object
Constructor Details
#initialize(installer_context) ⇒ PostInstallHook
Returns a new instance of PostInstallHook.
3 4 5 |
# File 'lib/cocoapods-binary-cache/hooks/post_install.rb', line 3 def initialize(installer_context) @installer_context = installer_context end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/cocoapods-binary-cache/hooks/post_install.rb', line 7 def run return unless Pod::Podfile::DSL.dev_pods_enabled && @installer_context.sandbox.instance_of?(Pod::PrebuildSandbox) # Modify pods scheme to support code coverage # If we don't prebuild dev pod -> no need to care about this in Pod project # because we setup in the main project (ex. DriverCI scheme) SchemeEditor.edit_to_support_code_coverage(@installer_context.sandbox) if Pod.is_prebuild_stage end |