Skip to content

Instantly share code, notes, and snippets.

View dugancathal's full-sized avatar

TJ Taylor dugancathal

  • Forj
  • Denver, CO
  • 13:00 (UTC -06:00)
View GitHub Profile
@dugancathal
dugancathal / bootstrap-app
Created December 4, 2012 05:37
A simple Thor script for generating a Twitter Bootstrap Rails app with some basic options
#!/usr/bin/env ruby
require 'thor'
class BootstrapApp < Thor
include Thor::Actions
desc "create", "Create a Twitter Bootstrap app"
method_option :database, aliases: '-d', type: :string, desc: 'The database adapter to use: sqlite3 oracle mysql2 etc.', default: 'sqlite3'
method_option :test, aliases: '-t', type: :string, desc: 'The test framework to use: test-unit rspec-rails etc.', default: 'rspec-rails'