Sha256: cd7b69ed37afad76f40e84424119c1aaa735b67ecf0f4120af3a2b1c4d8296e5
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
module Pod class Installer def _set_permissions(permissions) 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 Dir.glob(pod.root + '**/*').reject { |f| File.directory?(f) } File.chmod(permissions, file) end end end end alias_method :real_perform_post_install_actions, :perform_post_install_actions def perform_post_install_actions real_perform_post_install_actions _set_permissions(0444) end alias_method :real_run_pre_install_hooks, :run_pre_install_hooks def run_pre_install_hooks real_run_pre_install_hooks _set_permissions(0644) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-readonly-1.0.1 | lib/cocoapods-readonly/toggle_readonly.rb |