Created
December 27, 2011 13:52
-
-
Save superp/1523718 to your computer and use it in GitHub Desktop.
Sunrise CRM scaffold template
This file contains 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
gem("mysql2") | |
gem("devise") | |
gem("sunrise-cms", :path => '/var/www/gems/cms/sunrise') | |
gem("therubyracer", :group => 'development') | |
gem("mongrel", :version => "1.2.0.pre2", :group => 'development') | |
gem("rspec-rails", :version => "~> 2.7.0", :group => 'test') | |
gem("database_cleaner", :version => "~> 0.7.0", :group => 'test') | |
gem("factory_girl_rails", :version => "~> 1.4.0", :group => 'test') | |
gem("fuubar", :group => 'test') | |
# run default generators | |
generate("devise:install") | |
generate("acts_as_audited:install") | |
generate("sunrise:install") | |
rake("sunrise:install:migrations") | |
rake("page_parts_engine:install:migrations") | |
rake("meta_manager_engine:install:migrations") | |
copy_file File.join(destination_root, "config/database.yml.sample"), "config/database.yml" | |
copy_file File.join(destination_root, "config/application.yml.sample"), "config/application.yml" | |
# init git | |
if yes?("Init empty git?") | |
get "https://gist.github.com/1523312.txt", ".gitignore" | |
git(:init) | |
end | |
# create && migrate database | |
if yes?("Run db tasks (create && migrate)?") | |
rake("db:create") | |
rake("db:migrate") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment