Permalink
Browse files

adding rake task to install a lame-ass db.yml (because rails can suck…

… it)
  • Loading branch information...
1 parent 69fa748 commit 290e3aca3a85984d4a46acd7d3a5d1540c2495b5 @rick committed Jul 31, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/tasks/deploy.rake
View
@@ -0,0 +1,13 @@
+require 'fileutils'
+
+namespace :deploy do
+ task :make_db_yml do
+ FileUtils.copy(
+ File.expand_path(File.join(File.dirname(__FILE__), '/../../config/database.yml.example')),
+ File.expand_path(File.join(File.dirname(__FILE__), '/../../config/database.yml'))
+ )
+ end
+
+ task :post_deploy => [ :make_db_yml ]
+end
+

0 comments on commit 290e3ac

Please sign in to comment.