Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save wayneeseguin/558460 to your computer and use it in GitHub Desktop.

Select an option

Save wayneeseguin/558460 to your computer and use it in GitHub Desktop.
#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'"
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