Permalink
Browse files

Setup rake task

  • Loading branch information...
wycats committed Aug 27, 2009
1 parent 2898d56 commit a09119648bce479edc684a0032f92209b1a6e9bf
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/tasks/setup.rake
View
@@ -0,0 +1,15 @@
+rails_root = File.join(File.dirname(__FILE__), "..", "..")
+
+require "fileutils"
+
+task :setup do
+ puts "Copying database.yml"
+ FileUtils.cp(File.join(rails_root, "config", "database.sample.yml"),
+ File.join(rails_root, "config", "database.yml"))
+
+ puts "Copying development.sqlite3"
+ FileUtils.cp(File.join(rails_root, "db", "default", "development.sqlite3"),
+ File.join(rails_root, "db", "development.sqlite3"))
+
+ puts "Done."
+end

0 comments on commit a091196

Please sign in to comment.