lib/ash/zend_doctrine.rb in capistrano-ash-0.0.13 vs lib/ash/zend_doctrine.rb in capistrano-ash-0.0.15
- old
+ new
@@ -5,19 +5,10 @@
Capistrano::Configuration.instance(:must_exist) :
Capistrano.configuration(:must_exist)
configuration.load do
# --------------------------------------------
- # Set some defaults
- # --------------------------------------------
- # Deploy to file path
- set(:deploy_to) { "/var/www/#{application}/#{stage}" }
-
- # Define your backups directory
- set(:backup_to) { "#{deploy_to}/backups/" }
-
- # --------------------------------------------
# Calling our Methods
# --------------------------------------------
after "deploy:setup", "deploy:setup_shared"
after "deploy:finalize_update", "ash:fixperms"
after "deploy:symlink", "zend:symlink"
@@ -62,6 +53,13 @@
run "rm -f #{current_release}/scripts/doctrine-cli.production"
run "rm -f #{current_release}/application/Application.example.php"
end
end
+ namespace :doctrine do
+ desc "Run Doctrine Migrations"
+ task :migrate, :except => { :no_release => true } do
+ puts "Running Doctrine Migrations..."
+ run "cd #{current_release} && ./scripts/doctrine-cli migrate"
+ end
+ end
end