lib/ash/zend_doctrine.rb in capistrano-ash-1.1.14 vs lib/ash/zend_doctrine.rb in capistrano-ash-1.1.15

- old
+ new

@@ -39,31 +39,31 @@ end namespace :zend do desc "Symlink shared directories" task :symlink, :roles => :web, :except => { :no_release => true } do - run "ln -nfs #{shared_path}/var #{current_release}/var" - run "ln -nfs #{shared_path}/system #{current_release}/public/system" - run "mv #{current_release}/application/configs/application.ini.dist #{current_release}/application/configs/application.ini" - run "ln -nfs #{current_release}/application/Application.#{stage}.php #{current_release}/application/Application.php" - run "mv #{current_release}/public/htaccess.#{stage} #{current_release}/public/.htaccess" - run "cp #{current_release}/scripts/doctrine-cli.#{stage} #{current_release}/scripts/doctrine-cli" + run "ln -nfs #{shared_path}/var #{latest_release}/var" + run "ln -nfs #{shared_path}/system #{latest_release}/public/system" + run "mv #{latest_release}/application/configs/application.ini.dist #{latest_release}/application/configs/application.ini" + run "ln -nfs #{latest_release}/application/Application.#{stage}.php #{latest_release}/application/Application.php" + run "mv #{latest_release}/public/htaccess.#{stage} #{latest_release}/public/.htaccess" + run "cp #{latest_release}/scripts/doctrine-cli.#{stage} #{latest_release}/scripts/doctrine-cli" - try_sudo "chmod +x #{current_release}/scripts/doctrine-cli" + try_sudo "chmod +x #{latest_release}/scripts/doctrine-cli" # remove the example or other environment example files - run "rm -f #{current_release}/scripts/doctrine-cli.dist" - run "rm -f #{current_release}/scripts/doctrine-cli.staging" - run "rm -f #{current_release}/scripts/doctrine-cli.production" - run "rm -f #{current_release}/application/Application.example.php" + run "rm -f #{latest_release}/scripts/doctrine-cli.dist" + run "rm -f #{latest_release}/scripts/doctrine-cli.staging" + run "rm -f #{latest_release}/scripts/doctrine-cli.production" + run "rm -f #{latest_release}/application/Application.example.php" end end namespace :doctrine do desc "Run Doctrine Migrations" task :migrate, :roles => :web, :except => { :no_release => true } do puts "Running Doctrine Migrations..." - run "cd #{current_release} && ./scripts/doctrine-cli migrate" + run "cd #{latest_release} && ./scripts/doctrine-cli migrate" end end end