Created
April 15, 2015 11:46
-
-
Save burdandrei/025e377fd93673b06a7d to your computer and use it in GitHub Desktop.
Check that you got all the gems needed to trigger the ruby script
This file contains hidden or 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 -e | |
# | |
# Wrapper to check all the needed gems are installed | |
GL=$(gem list) | |
for gem in $(cat Gemfile | grep -w gem | cut -f2 -d ' '| tr -d "'"); do | |
if ! $(echo $GL | grep -wq $gem); then | |
gem install bundler | |
bundle install | |
break | |
fi | |
done | |
### | |
# Run here any ruby you need and don't think about the dependencies | |
### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
😈