{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3540","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3540/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3540/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3540/events","html_url":"https://github.com/CocoaPods/CocoaPods/pull/3540","id":74323473,"number":3540,"title":"Add a pre-install hook","user":{"login":"orta","id":49038,"avatar_url":"https://avatars.githubusercontent.com/u/49038?v=3","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-08T10:54:58Z","updated_at":"2015-05-27T17:28:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/pulls/3540","html_url":"https://github.com/CocoaPods/CocoaPods/pull/3540","diff_url":"https://github.com/CocoaPods/CocoaPods/pull/3540.diff","patch_url":"https://github.com/CocoaPods/CocoaPods/pull/3540.patch"},"body":"I'd like a pre-install hook with access to the sandbox, and podfile for keys. \r\n\r\nRight now Keys [jams itself](https://github.com/orta/cocoapods-keys/blob/master/lib/plugin.rb#L61) in before `install!` is called, and it adds a new pod to the list. Then it relies on a pre-install hook in a [Podspec](https://github.com/ashfurrow/empty-podspec/blob/master/Keys.podspec) to finish its settings. Ideally with the `preinstall` we can remove the current hackery, and migrate to using a pre and post hook to set up the lib correctly."},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/106004987","html_url":"https://github.com/CocoaPods/CocoaPods/pull/3540#issuecomment-106004987","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3540","id":106004987,"user":{"login":"orta","id":49038,"avatar_url":"https://avatars.githubusercontent.com/u/49038?v=3","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T17:28:38Z","updated_at":"2015-05-27T17:28:38Z","body":"kk"}}