lib/pave/database.rb in pave-0.6.6 vs lib/pave/database.rb in pave-0.7.0
- old
+ new
@@ -73,11 +73,11 @@
def execute_remote(remote="live")
server = Pave::Remote.server(remote)
directory = Pave::Remote.directory(remote)
db = remote_db
- say "Remotely executing #{dump_file(:remote)} on live #{db['name']}"
- sh "ssh #{server} \"cd #{directory}/db; gzip -dc #{dump_file(:remote)} | mysql -u#{db['user']} -p#{db['pass']} #{db['name']}\""
+ say "Remotely executing #{dump_file(:local)} on live #{db['name']}"
+ sh "ssh #{server} \"cd #{directory}/db; gzip -dc #{dump_file(:local)} | mysql -u#{db['user']} -p#{db['pass']} #{db['name']}\""
end
def upload(remote="live")
# Upload the project's local database dump to remotes db directory.
say "Uploading ./db/#{dump_file(:local)} SQL dump to #{remote_url}/db/#{dump_file(:local)}"