Created
January 12, 2014 10:52
-
-
Save itsluke/8383169 to your computer and use it in GitHub Desktop.
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
function dance() | |
config=' | |
# Gems | |
w%{ rubygems bundler/setup sinatra haml pry json net/http}.each {|req| require req } | |
configure do | |
end | |
require "./app" | |
run App | |
' | |
touch app.rb config.ru Gemfile | |
echo $config >> config.ru | |
echo 'require "sinatra/base" | |
class App < Sinatra::Base | |
end' >> app.rb | |
echo 'source "https://rubygems.org" | |
gem "sinatra" | |
gem "haml" | |
gem "pry" | |
gem "json" | |
gem "mandrill-api" | |
gem "sinatra-formhelpers" | |
group :development do | |
gem "shotgun" | |
gem "tux" | |
end | |
' >> Gemfile | |
echo "sinatra ready to dance\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment