Created
May 28, 2013 18:21
-
-
Save rodreegez/5664910 to your computer and use it in GitHub Desktop.
Create a Gemfile with the specified gems.
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 | |
# Usage: | |
# | |
# $ gemfile sinatra | |
# $ cat Gemfile | |
# source 'https://rubygems.org' | |
# gem 'sinatra' | |
function gemfile { | |
echo "source 'https://rubygems.org'" > './Gemfile' | |
for var in "$@" | |
do | |
echo "gem '"$var"'" >> './Gemfile' | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment