Skip to content

Instantly share code, notes, and snippets.

@itsluke
Created January 12, 2014 10:52
Show Gist options
  • Save itsluke/8383169 to your computer and use it in GitHub Desktop.
Save itsluke/8383169 to your computer and use it in GitHub Desktop.
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