Skip to content
Browse files

database movement commands name fix

  • Loading branch information...
1 parent f75ca83 commit 6eb644913cb04c93d92da10ff609f82d8e9be8a4 @everzet committed Jun 5, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capifony.rb
View
4 lib/capifony.rb
@@ -201,7 +201,7 @@ def load_database_config(data, env = 'prod')
namespace :database do
namespace :move do
desc "Dump remote database, download it to local & populate here"
- task :remote_to_local do
+ task :to_local do
filename = "#{application}.local_dump.#{Time.now.to_i}.sql.bz2"
file = "/tmp/#{filename}"
sqlfile = "#{application}_dump.sql"
@@ -233,7 +233,7 @@ def load_database_config(data, env = 'prod')
end
desc "Dump local database, load it to remote & populate there"
- task :local_to_remote do
+ task :to_remote do
filename = "#{application}.local_dump.#{Time.now.to_i}.sql.bz2"
file = "backups/#{filename}"
config = load_database_config IO.read('config/databases.yml'), 'dev'

0 comments on commit 6eb6449

Please sign in to comment.
Something went wrong with that request. Please try again.