Last active
June 20, 2016 07:00
-
-
Save johnpmorris/3b4b6a6e9004a9f3231fe003d9eb0266 to your computer and use it in GitHub Desktop.
get most of our projects running smoothly with one command
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
function domyshit { | |
#bundle | |
echo -e "\n...does this shit have a \e[1mGemfile? \e[0mπ©\n" | |
if [[ -a Gemfile ]] | |
then | |
echo -e "\n\e[32m...shit yeah! \e[0mπ©\n" | |
bundle install | |
echo -e "\n\e[32m...done that shit \e[0mπ©\n" | |
else | |
echo -e "\e[31m\n...shit no! \e[0m π©\n" | |
fi | |
# npm | |
echo "\n...does this shit use \e[1mnpm? \e[0mπ©\n" | |
if [[ -a package.json ]] | |
then | |
echo -e "\n\e[32m...shit yeah! \e[0mπ©\n" | |
npm install | |
echo -e "\n\e[32m...done that shit \e[0mπ©\n" | |
else | |
echo -e "\e[31m\n...shit no! \e[0m π©\n" | |
fi | |
#bower | |
echo "\n...this shit using \e[1ma package manager to manage your package manager?\e[0mπ©\n" | |
if [[ -a bower.json ]] | |
then | |
echo -e "\n\e[32m...shit yeah! \e[0mπ©\n" | |
bower install | |
echo -e "\n\e[32m...done that shit \e[0mπ©\n" | |
else | |
echo -e "\e[31m\n...shit no! \e[0m π©\n" | |
fi | |
#migrations | |
echo "\n...this shit got a \e[1mRakefile? \e[0mπ©\n" | |
if [[ -a Rakefile ]] | |
then | |
echo -e "\n\e[32m...shit yeah! \e[0mπ©\n" | |
rake db:migrate | |
echo -e "\n\e[32m...done that shit \e[0mπ©\n" | |
else | |
echo -e "\e[31m\n...shit no! \e[0m π©\n" | |
fi | |
echo -e "\n\e[7m\e[35m... dis shit lit fam π¬ π© π© π π π π© π― π¦ \n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment