{"action":"created","comment":{"url":"https://api.github.com/repos/mikemcquaid/strap/pulls/comments/43059965","id":43059965,"diff_hunk":"@@ -244,5 +244,35 @@ fi\n # Revoke sudo access again.\n sudo -k\n \n+# Get remote Brewfile\n+if [ -d $HOME/.homebrew-brewfile ]; then\n+  logn \"Updating homebrew-brewfile from github:\"\n+  cd $HOME/.homebrew-brewfile; git pull\n+else\n+  logn\n+  git clone https://github.com/$STRAP_GITHUB_USER/homebrew-brewfile ~/.homebrew-brewfile\n+fi\n+\n+# Symlink .Brewfile\n+if [ ! -s $HOME/.Brewfile ]; then\n+  logn \"Symlinking ~/.homebrew-brewfile/.Brewfile to ~/homebrew-brewfile/.Brewfile:\"\n+  if [ -f $HOME/.homebrew-brewfile/.Brewfile ]; then\n+    ln -s $HOME/.homebrew-brewfile/.Brewfile $HOME/.Brewfile\n+    logk\n+  else\n+    echo \"not found\"\n+  fi\n+fi\n+\n+# Install global dependencies\n+logn \"Installing global Homebrew bundle:\"\n+if [ -f $HOME/.Brewfile ]; then\n+  echo \"\"\n+  brew bundle --global\n+  logk\n+else\n+  echo \"skipped\"","path":"bin/strap.sh","position":35,"original_position":31,"commit_id":"f94f1808b6211c66a3c79f7ef70acae96bcf8a13","original_commit_id":"d286dfcdfe6f0fd6de51b2c13a88247d8a89e77d","user":{"login":"blackjid","id":228037,"avatar_url":"https://avatars.githubusercontent.com/u/228037?v=3","gravatar_id":"","url":"https://api.github.com/users/blackjid","html_url":"https://github.com/blackjid","followers_url":"https://api.github.com/users/blackjid/followers","following_url":"https://api.github.com/users/blackjid/following{/other_user}","gists_url":"https://api.github.com/users/blackjid/gists{/gist_id}","starred_url":"https://api.github.com/users/blackjid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackjid/subscriptions","organizations_url":"https://api.github.com/users/blackjid/orgs","repos_url":"https://api.github.com/users/blackjid/repos","events_url":"https://api.github.com/users/blackjid/events{/privacy}","received_events_url":"https://api.github.com/users/blackjid/received_events","type":"User","site_admin":false},"body":"what do yo mean with an \"error case\"?? something that checks the exit error of the `brew bundle --global` command?? \r\n\r\nNow if the `~/.Brewfile` doesn't exist the log would be `Installing global Homebrew bundle: skipped` that makes sense to me...\r\n\r\nI don't think the script should fail if no .Brewfile is present...","created_at":"2015-10-26T22:03:33Z","updated_at":"2015-10-26T22:03:33Z","html_url":"https://github.com/mikemcquaid/strap/pull/27#discussion_r43059965","pull_request_url":"https://api.github.com/repos/mikemcquaid/strap/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/mikemcquaid/strap/pulls/comments/43059965"},"html":{"href":"https://github.com/mikemcquaid/strap/pull/27#discussion_r43059965"},"pull_request":{"href":"https://api.github.com/repos/mikemcquaid/strap/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/mikemcquaid/strap/pulls/27","id":47993863,"html_url":"https://github.com/mikemcquaid/strap/pull/27","diff_url":"https://github.com/mikemcquaid/strap/pull/27.diff","patch_url":"https://github.com/mikemcquaid/strap/pull/27.patch","issue_url":"https://api.github.com/repos/mikemcquaid/strap/issues/27","number":27,"state":"open","locked":false,"title":"Gets `.Brewfile` from github and run brew bundle","user":{"login":"blackjid","id":228037,"avatar_url":"https://avatars.githubusercontent.com/u/228037?v=3","gravatar_id":"","url":"https://api.github.com/users/blackjid","html_url":"https://github.com/blackjid","followers_url":"https://api.github.com/users/blackjid/followers","following_url":"https://api.github.com/users/blackjid/following{/other_user}","gists_url":"https://api.github.com/users/blackjid/gists{/gist_id}","starred_url":"https://api.github.com/users/blackjid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackjid/subscriptions","organizations_url":"https://api.github.com/users/blackjid/orgs","repos_url":"https://api.github.com/users/blackjid/repos","events_url":"https://api.github.com/users/blackjid/events{/privacy}","received_events_url":"https://api.github.com/users/blackjid/received_events","type":"User","site_admin":false},"body":"The idea is to add support for custom brew packages.\r\n\r\nIt should download the `Brewfile` from users `homebrew-brewfile` and then run `brew bundle --global`\r\n\r\nI still think that is a good place for organization defaults.. but maybe we can discuss that in a separe issue.\r\n\r\n closes #21","created_at":"2015-10-17T19:49:10Z","updated_at":"2015-10-26T22:03:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64e0b016721dfc719e6a414b7994a5b265493284","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mikemcquaid/strap/pulls/27/commits","review_comments_url":"https://api.github.com/repos/mikemcquaid/strap/pulls/27/comments","review_comment_url":"https://api.github.com/repos/mikemcquaid/strap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mikemcquaid/strap/issues/27/comments","statuses_url":"https://api.github.com/repos/mikemcquaid/strap/statuses/f94f1808b6211c66a3c79f7ef70acae96bcf8a13","head":{"label":"blackjid:brewfile","ref":"brewfile","sha":"f94f1808b6211c66a3c79f7ef70acae96bcf8a13","user":{"login":"blackjid","id":228037,"avatar_url":"https://avatars.githubusercontent.com/u/228037?v=3","gravatar_id":"","url":"https://api.github.com/users/blackjid","html_url":"https://github.com/blackjid","followers_url":"https://api.github.com/users/blackjid/followers","following_url":"https://api.github.com/users/blackjid/following{/other_user}","gists_url":"https://api.github.com/users/blackjid/gists{/gist_id}","starred_url":"https://api.github.com/users/blackjid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackjid/subscriptions","organizations_url":"https://api.github.com/users/blackjid/orgs","repos_url":"https://api.github.com/users/blackjid/repos","events_url":"https://api.github.com/users/blackjid/events{/privacy}","received_events_url":"https://api.github.com/users/blackjid/received_events","type":"User","site_admin":false},"repo":{"id":44451059,"name":"strap","full_name":"blackjid/strap","owner":{"login":"blackjid","id":228037,"avatar_url":"https://avatars.githubusercontent.com/u/228037?v=3","gravatar_id":"","url":"https://api.github.com/users/blackjid","html_url":"https://github.com/blackjid","followers_url":"https://api.github.com/users/blackjid/followers","following_url":"https://api.github.com/users/blackjid/following{/other_user}","gists_url":"https://api.github.com/users/blackjid/gists{/gist_id}","starred_url":"https://api.github.com/users/blackjid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackjid/subscriptions","organizations_url":"https://api.github.com/users/blackjid/orgs","repos_url":"https://api.github.com/users/blackjid/repos","events_url":"https://api.github.com/users/blackjid/events{/privacy}","received_events_url":"https://api.github.com/users/blackjid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blackjid/strap","description":":boot: Bootstrap your OS X development system.","fork":true,"url":"https://api.github.com/repos/blackjid/strap","forks_url":"https://api.github.com/repos/blackjid/strap/forks","keys_url":"https://api.github.com/repos/blackjid/strap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blackjid/strap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blackjid/strap/teams","hooks_url":"https://api.github.com/repos/blackjid/strap/hooks","issue_events_url":"https://api.github.com/repos/blackjid/strap/issues/events{/number}","events_url":"https://api.github.com/repos/blackjid/strap/events","assignees_url":"https://api.github.com/repos/blackjid/strap/assignees{/user}","branches_url":"https://api.github.com/repos/blackjid/strap/branches{/branch}","tags_url":"https://api.github.com/repos/blackjid/strap/tags","blobs_url":"https://api.github.com/repos/blackjid/strap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blackjid/strap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blackjid/strap/git/refs{/sha}","trees_url":"https://api.github.com/repos/blackjid/strap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blackjid/strap/statuses/{sha}","languages_url":"https://api.github.com/repos/blackjid/strap/languages","stargazers_url":"https://api.github.com/repos/blackjid/strap/stargazers","contributors_url":"https://api.github.com/repos/blackjid/strap/contributors","subscribers_url":"https://api.github.com/repos/blackjid/strap/subscribers","subscription_url":"https://api.github.com/repos/blackjid/strap/subscription","commits_url":"https://api.github.com/repos/blackjid/strap/commits{/sha}","git_commits_url":"https://api.github.com/repos/blackjid/strap/git/commits{/sha}","comments_url":"https://api.github.com/repos/blackjid/strap/comments{/number}","issue_comment_url":"https://api.github.com/repos/blackjid/strap/issues/comments{/number}","contents_url":"https://api.github.com/repos/blackjid/strap/contents/{+path}","compare_url":"https://api.github.com/repos/blackjid/strap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blackjid/strap/merges","archive_url":"https://api.github.com/repos/blackjid/strap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blackjid/strap/downloads","issues_url":"https://api.github.com/repos/blackjid/strap/issues{/number}","pulls_url":"https://api.github.com/repos/blackjid/strap/pulls{/number}","milestones_url":"https://api.github.com/repos/blackjid/strap/milestones{/number}","notifications_url":"https://api.github.com/repos/blackjid/strap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blackjid/strap/labels{/name}","releases_url":"https://api.github.com/repos/blackjid/strap/releases{/id}","created_at":"2015-10-17T19:25:32Z","updated_at":"2015-10-17T19:25:33Z","pushed_at":"2015-10-26T21:59:00Z","git_url":"git://github.com/blackjid/strap.git","ssh_url":"git@github.com:blackjid/strap.git","clone_url":"https://github.com/blackjid/strap.git","svn_url":"https://github.com/blackjid/strap","homepage":"https://osx-strap.herokuapp.com/","size":112,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mikemcquaid:master","ref":"master","sha":"a95973b382df6d3999b131fb221519842af73cdb","user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"repo":{"id":41731997,"name":"strap","full_name":"mikemcquaid/strap","owner":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/mikemcquaid/strap","description":":boot: Bootstrap your OS X development system.","fork":false,"url":"https://api.github.com/repos/mikemcquaid/strap","forks_url":"https://api.github.com/repos/mikemcquaid/strap/forks","keys_url":"https://api.github.com/repos/mikemcquaid/strap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikemcquaid/strap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikemcquaid/strap/teams","hooks_url":"https://api.github.com/repos/mikemcquaid/strap/hooks","issue_events_url":"https://api.github.com/repos/mikemcquaid/strap/issues/events{/number}","events_url":"https://api.github.com/repos/mikemcquaid/strap/events","assignees_url":"https://api.github.com/repos/mikemcquaid/strap/assignees{/user}","branches_url":"https://api.github.com/repos/mikemcquaid/strap/branches{/branch}","tags_url":"https://api.github.com/repos/mikemcquaid/strap/tags","blobs_url":"https://api.github.com/repos/mikemcquaid/strap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikemcquaid/strap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikemcquaid/strap/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikemcquaid/strap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikemcquaid/strap/statuses/{sha}","languages_url":"https://api.github.com/repos/mikemcquaid/strap/languages","stargazers_url":"https://api.github.com/repos/mikemcquaid/strap/stargazers","contributors_url":"https://api.github.com/repos/mikemcquaid/strap/contributors","subscribers_url":"https://api.github.com/repos/mikemcquaid/strap/subscribers","subscription_url":"https://api.github.com/repos/mikemcquaid/strap/subscription","commits_url":"https://api.github.com/repos/mikemcquaid/strap/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikemcquaid/strap/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikemcquaid/strap/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikemcquaid/strap/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikemcquaid/strap/contents/{+path}","compare_url":"https://api.github.com/repos/mikemcquaid/strap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikemcquaid/strap/merges","archive_url":"https://api.github.com/repos/mikemcquaid/strap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikemcquaid/strap/downloads","issues_url":"https://api.github.com/repos/mikemcquaid/strap/issues{/number}","pulls_url":"https://api.github.com/repos/mikemcquaid/strap/pulls{/number}","milestones_url":"https://api.github.com/repos/mikemcquaid/strap/milestones{/number}","notifications_url":"https://api.github.com/repos/mikemcquaid/strap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikemcquaid/strap/labels{/name}","releases_url":"https://api.github.com/repos/mikemcquaid/strap/releases{/id}","created_at":"2015-09-01T10:22:42Z","updated_at":"2015-10-22T06:50:10Z","pushed_at":"2015-10-26T21:59:01Z","git_url":"git://github.com/mikemcquaid/strap.git","ssh_url":"git@github.com:mikemcquaid/strap.git","clone_url":"https://github.com/mikemcquaid/strap.git","svn_url":"https://github.com/mikemcquaid/strap","homepage":"https://osx-strap.herokuapp.com/","size":260,"stargazers_count":117,"watchers_count":117,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikemcquaid/strap/pulls/27"},"html":{"href":"https://github.com/mikemcquaid/strap/pull/27"},"issue":{"href":"https://api.github.com/repos/mikemcquaid/strap/issues/27"},"comments":{"href":"https://api.github.com/repos/mikemcquaid/strap/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/mikemcquaid/strap/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/mikemcquaid/strap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mikemcquaid/strap/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/mikemcquaid/strap/statuses/f94f1808b6211c66a3c79f7ef70acae96bcf8a13"}}}}