Skip to content

Commit

Permalink
making script/create_project quicker
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Aug 18, 2009
1 parent eef1ff2 commit 8d9a1c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions script/create_project
Expand Up @@ -48,11 +48,10 @@ def installed?(gem_name)
installed_gems.any?
end

run("mkdir #{project_directory}")
run("cp -r . #{project_directory}")
Dir.chdir(project_directory) or fail("Couldn't change to #{project_directory}")
run("git init")
run("git remote add heroku_suspenders #{template_url}")
run("git pull heroku_suspenders master")

Dir.glob("#{project_directory}/**/*").each do |file|
search_and_replace(file, changeme, project_name)
Expand All @@ -74,10 +73,6 @@ unless installed?("rails")
run "sudo gem install rails"
end

run("sudo rake gems:install RAILS_ENV=development")
run("sudo rake gems:install RAILS_ENV=test")
run("sudo rake gems:install RAILS_ENV=cucumber")

# can't vendor nokogiri because it has native extensions
unless installed?("nokogiri")
run "sudo gem install nokogiri --version='1.3.2'"
Expand Down

0 comments on commit 8d9a1c6

Please sign in to comment.