Skip to content

Commit

Permalink
Use Homebrew for hub on OS X
Browse files Browse the repository at this point in the history
The previous method places the `hub` command in ~/bin/hub, which shows
up in the dotfiles repo for thoughtbot/dotfiles users. We could
gitignore the `bin/hub` gem there, but the hub README recommends using
Homebrew or a package manager when it is available.

This leaves the Linux version functionally the same.
  • Loading branch information
Dan Croak committed Mar 14, 2014
1 parent 5765e1e commit e8102c9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions Manifest.linux
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ common-components/ruby-environment
linux-components/bundler
common-components/default-gems
linux-components/heroku
linux-components/github
linux-components/rcm
1 change: 1 addition & 0 deletions Manifest.mac
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ common-components/ruby-environment
mac-components/bundler
common-components/default-gems
mac-components/heroku
mac-components/github
mac-components/rcm
4 changes: 0 additions & 4 deletions common-components/ruby-environment
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ fancy_echo "Updating to latest Rubygems version ..."

fancy_echo "Installing Bundler to install project-specific Ruby gems ..."
gem install bundler --no-document --pre

fancy_echo "Installing GitHub CLI client ..."
curl http://hub.github.com/standalone -sLo ~/.bin/hub
chmod +x ~/.bin/hub
9 changes: 5 additions & 4 deletions linux
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ fancy_echo "Updating to latest Rubygems version ..."

fancy_echo "Installing Bundler to install project-specific Ruby gems ..."
gem install bundler --no-document --pre

fancy_echo "Installing GitHub CLI client ..."
curl http://hub.github.com/standalone -sLo ~/.bin/hub
chmod +x ~/.bin/hub
### end common-components/ruby-environment

fancy_echo "Configuring Bundler for faster, parallel gem installation ..."
Expand All @@ -169,6 +165,11 @@ fancy_echo "Installing the heroku-config plugin to pull config variables locally
heroku plugins:install git://github.com/ddollar/heroku-config.git
### end linux-components/heroku

fancy_echo "Installing GitHub CLI client ..."
curl http://hub.github.com/standalone -sLo ~/.bin/hub
chmod +x ~/.bin/hub
### end linux-components/github

fancy_echo "Installing rcm, to manage your dotfiles ..."
wget -O /tmp/rcm_1.1.0_all.deb http://mike-burns.com/project/rcm/rcm_1.1.0_all.deb
sudo dpkg -i /tmp/rcm_1.1.0_all.deb
Expand Down
3 changes: 3 additions & 0 deletions linux-components/github
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fancy_echo "Installing GitHub CLI client ..."
curl http://hub.github.com/standalone -sLo ~/.bin/hub
chmod +x ~/.bin/hub
8 changes: 4 additions & 4 deletions mac
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ fancy_echo "Updating to latest Rubygems version ..."

fancy_echo "Installing Bundler to install project-specific Ruby gems ..."
gem install bundler --no-document --pre

fancy_echo "Installing GitHub CLI client ..."
curl http://hub.github.com/standalone -sLo ~/.bin/hub
chmod +x ~/.bin/hub
### end common-components/ruby-environment

fancy_echo "Configuring Bundler for faster, parallel gem installation ..."
Expand All @@ -157,6 +153,10 @@ fancy_echo "Installing the heroku-config plugin to pull config variables locally
heroku plugins:install git://github.com/ddollar/heroku-config.git
### end mac-components/heroku

fancy_echo "Installing GitHub CLI client ..."
brew install hub
### end mac-components/github

fancy_echo "Installing rcm, to manage your dotfiles ..."
brew tap thoughtbot/formulae
brew install rcm
Expand Down
2 changes: 2 additions & 0 deletions mac-components/github
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fancy_echo "Installing GitHub CLI client ..."
brew install hub

0 comments on commit e8102c9

Please sign in to comment.