refactoring capistrano recipe

refactoring recipe and minimize code using capistrano features