Skip to content

Instantly share code, notes, and snippets.

@markmcdonald51
Created December 3, 2009 18:47
Show Gist options
  • Save markmcdonald51/248424 to your computer and use it in GitHub Desktop.
Save markmcdonald51/248424 to your computer and use it in GitHub Desktop.
rake("gems:install", :sudo => true)
gem 'install_theme'
#gem 'haml'
#run 'haml --rails .'
gem 'mislav-will_paginate', :lib => 'will_paginate'
#gem 'rubyist-aasm'
plugin 'resource_controller',
:git => 'git://github.com/giraffesoft/resource_controller.git'
plugin 'rspec',
:git => 'git://github.com/dchelimsky/rspec.git'
plugin 'rspec-rails',
:git => 'git://github.com/dchelimsky/rspec-rails.git'
plugin 'exception_notifier',
:git => 'git://github.com/rails/exception_notification.git'
plugin 'exception_notifier', :git => 'git://github.com/rails/exception_notification.git'
generate("rspec")
# Template Theme
#run 'wget http://www.styleshout.com/hits.php?type=tmp&id=23&url=templates/downloads/Unbound1-0.zip'
#run 'unzip Unbound1-0.zip'
run "install_theme . /home/mark/Desktop/Unbound1-0/ '#content .col-one' --partial 'content_col_two:#content .col-two' \
--partial 'content_col_three:#content .col-three' --partial 'footer_col_one:#footer .col-one' --partial 'footer_col_two:#footer .col-two' \
--partial 'footer_col_three:#footer .col-three' --partial 'nav:#nav' "
run 'rm public/javascripts/*.js'
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.js"
run "curl -L http://tablesorter.com/jquery.tablesorter.zip > /tmp/jquery.tablesorter.zip"
inside('public/javascripts') do
run "unzip /tmp/jquery.tablesorter.zip"
end
generate(:scaffold_resource, "person", "name:string", "address:text", "dob:date") if yes?("Add person scaffod?")
# Clean up
run "rm public/index.html"
rake("db:migrate")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment