Forked from madebydna/rvm_gemset_from_rails3_template.rb
Created
August 31, 2010 02:53
-
-
Save wayneeseguin/558460 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
| #rvm_trust_rvmrcs=1 # <= This goes in ~/.rvmrc | |
| create_file ".rvmrc", "rvm --create 1.9.2@#{appname}" | |
| # Note I removed --pre since Bundler is 1.0.0 now. | |
| # Also note that by default `` and system() runs via 'sh' not bash, hence the | |
| # bash -l -c... | |
| run "/bin/bash -l -c 'cd path/to/new/app; gem install bundler ; bundle install'" |
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
| require File.join(File.dirname(__FILE__), 'core_extensions.rb') | |
| #Create Gemspec | |
| #rvm_trust_rvmrcs=1 # <= This goes in ~/.rvmrc | |
| create_file ".rvmrc", "rvm --create 1.9.2@#{appname}" | |
| initialize_templater | |
| required_recipes = %w(default jquery haml rspec factory_girl remarkable) | |
| required_recipes.each {|required_recipe| apply recipe(required_recipe)} | |
| load_options | |
| apply(recipe('cucumber')) if yes?("Do you want to some cukes?") | |
| apply recipe('design') | |
| apply recipe('mongoid') | |
| #run "cd ~/rails3_sites/#{app_name}" | |
| inside app_name do | |
| run 'gem install bundler --pre' | |
| run 'bundle install' | |
| end | |
| execute_stategies | |
| generators_configuration = <<-END | |
| config.generators do |g| | |
| g.template_engine :haml | |
| g.test_framework :rspec, :fixture => true, :views => false | |
| g.fixture_replacement :factory_girl, :dir => "spec/factories" | |
| g.stylesheets false | |
| end | |
| END | |
| environment generators_configuration | |
| 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