Class: PodAlexandria::LocalPostInstallHook
- Inherits:
-
Object
- Object
- PodAlexandria::LocalPostInstallHook
- Defined in:
- lib/cocoapods-alexandria/env_local/post_install.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#pods_project ⇒ Object
readonly
Returns the value of attribute pods_project.
-
#sandbox_root ⇒ Object
readonly
Returns the value of attribute sandbox_root.
-
#umbrella_targets ⇒ Object
readonly
Returns the value of attribute umbrella_targets.
Instance Method Summary collapse
-
#initialize(installer_context, user_options) ⇒ LocalPostInstallHook
constructor
A new instance of LocalPostInstallHook.
- #run ⇒ Object
Constructor Details
#initialize(installer_context, user_options) ⇒ LocalPostInstallHook
Returns a new instance of LocalPostInstallHook.
5 6 7 8 9 10 |
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 5 def initialize(installer_context, ) @pods_project = installer_context.pods_project @sandbox_root = installer_context.sandbox_root @umbrella_targets = installer_context.umbrella_targets @options = UserOptions.new(installer_context, ) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3 def @options end |
#pods_project ⇒ Object (readonly)
Returns the value of attribute pods_project.
3 4 5 |
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3 def pods_project @pods_project end |
#sandbox_root ⇒ Object (readonly)
Returns the value of attribute sandbox_root.
3 4 5 |
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3 def sandbox_root @sandbox_root end |
#umbrella_targets ⇒ Object (readonly)
Returns the value of attribute umbrella_targets.
3 4 5 |
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 3 def umbrella_targets @umbrella_targets end |
Instance Method Details
#run ⇒ Object
12 13 14 15 16 17 |
# File 'lib/cocoapods-alexandria/env_local/post_install.rb', line 12 def run Pod::UI.title "Tweaking CocoaPods for XcodeGen..." pods_project.fix_deployment_target_warnings(.minimum_ios_version) pods_project.fix_bundle_code_signing include_user_configs_in_pods_xcconfigs end |