Created
November 25, 2010 04:36
-
-
Save vertis/714904 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
| remove_file 'Gemfile' | |
| create_file 'Gemfile' do | |
| <<-GEMFILE | |
| source 'http://rubygems.org' | |
| gem 'rails', '3.0.1' | |
| # The ORM which we will stake our application | |
| gem "mongoid", ">= 2.0.0.beta.19" | |
| gem "bson_ext", ">= 1.1.1" | |
| # Background processing | |
| gem 'delayed_job', '>= 2.1.0.pre2' | |
| gem 'delayed_job_mongoid', '>= 1.0.0.rc' | |
| # Authentication | |
| gem "devise" | |
| # Templating | |
| gem "haml", ">= 3.0.0" | |
| gem "haml-rails" | |
| # Easy jQuery helpers for rails3 | |
| gem 'jquery-rails' | |
| gem 'mongoid_rails_migrations' | |
| group :test do | |
| gem 'machinist_mongo', :require => 'machinist/mongoid', :git => 'http://github.com/nmerouze/machinist_mongo.git', :branch => 'machinist2' | |
| gem 'rspec-rails', '>= 2.0.1' | |
| gem 'mongoid-rspec' | |
| gem 'rcov' | |
| gem 'capybara' | |
| gem 'cucumber-rails' | |
| gem 'cucumber' | |
| gem 'spork' | |
| gem 'launchy' # So you can do Then show me the page | |
| end | |
| GEMFILE | |
| end | |
| generators_configuration = <<-END | |
| config.generators do |g| | |
| g.orm :mongoid | |
| g.template_engine :haml | |
| g.test_framework :rspec, :fixture => true, :views => false | |
| g.fixture_replacement :machinist | |
| end | |
| END | |
| environment generators_configuration | |
| inside app_name do | |
| run 'bundle install' | |
| end | |
| generate "mongoid:config" | |
| generate "devise:install" | |
| git :init | |
| git :add => "." | |
| git :commit => "-m 'initial commit'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment