Skip to content

Instantly share code, notes, and snippets.

Avatar
🥑

Bradley Marques bradleymarques

🥑
View GitHub Profile
@bradleymarques
bradleymarques / setup_ruby_project.sh
Last active May 10, 2016
Bash script to initialise skeleton Ruby (not Rails) project. Pass in the name of the project and it will create the file structure and some initial files, as per this tutorial: http://learnrubythehardway.org/book/ex46.html. Also initialises the folder as a git repository and does an initial commit. Finally, the script runs a smoke test to ensure…
View setup_ruby_project.sh
#!/bin/bash
name=$1
if [[ -z $name ]]; then
echo "Please specify a name for the Ruby project"
exit
fi
# Setup directory structure
mkdir $name
You can’t perform that action at this time.