Class: Pod::Installer
- Inherits:
-
Object
- Object
- Pod::Installer
- Defined in:
- lib/cocoapods-readonly/toggle_readonly.rb
Instance Method Summary collapse
- #_set_permissions(permissions) ⇒ Object
- #perform_post_install_actions ⇒ Object
- #real_perform_post_install_actions ⇒ Object
- #real_run_pre_install_hooks ⇒ Object
- #run_pre_install_hooks ⇒ Object
Instance Method Details
#_set_permissions(permissions) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/cocoapods-readonly/toggle_readonly.rb', line 3 def () installer = installer_rep for pod in installer.pods # if the pod is actually in Pods/, and not a :path linked pod if pod.root.parent == installer.sandbox_root for file in pod.source_files File.chmod(, file) end end end end |
#perform_post_install_actions ⇒ Object
16 17 18 19 |
# File 'lib/cocoapods-readonly/toggle_readonly.rb', line 16 def perform_post_install_actions real_perform_post_install_actions (0444) end |
#real_perform_post_install_actions ⇒ Object
15 |
# File 'lib/cocoapods-readonly/toggle_readonly.rb', line 15 alias_method :real_perform_post_install_actions, :perform_post_install_actions |
#real_run_pre_install_hooks ⇒ Object
21 |
# File 'lib/cocoapods-readonly/toggle_readonly.rb', line 21 alias_method :real_run_pre_install_hooks, :run_pre_install_hooks |
#run_pre_install_hooks ⇒ Object
22 23 24 25 |
# File 'lib/cocoapods-readonly/toggle_readonly.rb', line 22 def run_pre_install_hooks real_run_pre_install_hooks (0644) end |