{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/rcm/issues/48","labels_url":"https://api.github.com/repos/thoughtbot/rcm/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/rcm/issues/48/comments","events_url":"https://api.github.com/repos/thoughtbot/rcm/issues/48/events","html_url":"https://github.com/thoughtbot/rcm/issues/48","id":28474988,"number":48,"title":"tag-specific pre-up and post-up hooks","user":{"login":"mgorbach","id":488072,"avatar_url":"https://avatars.githubusercontent.com/u/488072?v=3","gravatar_id":"","url":"https://api.github.com/users/mgorbach","html_url":"https://github.com/mgorbach","followers_url":"https://api.github.com/users/mgorbach/followers","following_url":"https://api.github.com/users/mgorbach/following{/other_user}","gists_url":"https://api.github.com/users/mgorbach/gists{/gist_id}","starred_url":"https://api.github.com/users/mgorbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgorbach/subscriptions","organizations_url":"https://api.github.com/users/mgorbach/orgs","repos_url":"https://api.github.com/users/mgorbach/repos","events_url":"https://api.github.com/users/mgorbach/events{/privacy}","received_events_url":"https://api.github.com/users/mgorbach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/rcm/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/thoughtbot/rcm/milestones/2","labels_url":"https://api.github.com/repos/thoughtbot/rcm/milestones/2/labels","id":558652,"number":2,"title":"1.3.0","description":"New features.","creator":{"login":"mike-burns","id":4550,"avatar_url":"https://avatars.githubusercontent.com/u/4550?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-burns","html_url":"https://github.com/mike-burns","followers_url":"https://api.github.com/users/mike-burns/followers","following_url":"https://api.github.com/users/mike-burns/following{/other_user}","gists_url":"https://api.github.com/users/mike-burns/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-burns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-burns/subscriptions","organizations_url":"https://api.github.com/users/mike-burns/orgs","repos_url":"https://api.github.com/users/mike-burns/repos","events_url":"https://api.github.com/users/mike-burns/events{/privacy}","received_events_url":"https://api.github.com/users/mike-burns/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":9,"state":"open","created_at":"2014-02-04T16:14:01Z","updated_at":"2014-11-19T23:27:23Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-02-28T02:58:26Z","updated_at":"2015-01-08T18:02:36Z","closed_at":null,"body":"I'd like a way to add a `hooks` directory to tags, so that tags can have their own `pre-up` and `post-up` hooks. Here's a use case:\r\nI have a `vim` tag that installs my `.vimrc` file. I'd like a post-up hook that creates the .vim directory if it doesn't exist and automatically clones vundle so that I can install bundles listed in my `.vimrc` next time I start vim. I don't want a general `post-up` hook because only machines using the tag `vim` should run this particular part of the script.\r\nSimilarly, I have a `zsh` tag. I want all machines using zsh to run a post-up hook that clones and installs oh-my-zsh, if it doesn't exist."},"comment":{"url":"https://api.github.com/repos/thoughtbot/rcm/issues/comments/69220772","html_url":"https://github.com/thoughtbot/rcm/issues/48#issuecomment-69220772","issue_url":"https://api.github.com/repos/thoughtbot/rcm/issues/48","id":69220772,"user":{"login":"olalonde","id":416585,"avatar_url":"https://avatars.githubusercontent.com/u/416585?v=3","gravatar_id":"","url":"https://api.github.com/users/olalonde","html_url":"https://github.com/olalonde","followers_url":"https://api.github.com/users/olalonde/followers","following_url":"https://api.github.com/users/olalonde/following{/other_user}","gists_url":"https://api.github.com/users/olalonde/gists{/gist_id}","starred_url":"https://api.github.com/users/olalonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olalonde/subscriptions","organizations_url":"https://api.github.com/users/olalonde/orgs","repos_url":"https://api.github.com/users/olalonde/repos","events_url":"https://api.github.com/users/olalonde/events{/privacy}","received_events_url":"https://api.github.com/users/olalonde/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T18:02:36Z","updated_at":"2015-01-08T18:02:36Z","body":"One work around for post hooks:\r\n\r\nPut a hook script in `tag-YOURTAG/hook-YOURTAG`. `rcup` will symlink `~/.hook-YOURTAG` and add some code to the `hooks/post-up` which will source `~/.hooks-sometag` if the file exists."}}