Created
April 3, 2012 16:17
-
-
Save jcf/2293305 to your computer and use it in GitHub Desktop.
Bootstrap a Ruby app that uses Bundler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Checking for Ruby..." | |
type -P ruby &>/dev/null || { echo >&2 "Ruby not found in PATH. Exiting."; exit 1; } | |
echo "Checking for Bundler..." | |
gem which bundler &>/dev/null || gem install bundler | |
echo "Installing gem dependencies..." | |
bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snippet for use with Vim & UltiSnips | |
snippet bs | |
echo "Checking for Ruby..." | |
type -P ruby &>/dev/null || { echo >&2 "Ruby not found in PATH. Exiting."; exit 1; } | |
echo "Checking for Bundler..." | |
gem which bundler &>/dev/null || gem install bundler | |
echo "Installing gem dependencies..." | |
bundle install | |
$0 | |
endsnippet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
…and just to be safe, I've switched to using Bash.