http://kannokanno.hatenablog.com/entry/2015/07/26/212211
capistranoというよりRake構文の一部。
http://capistranorb.com/documentation/getting-started/before-after/#
before :starting, :ensure_user →startingタスク実行時に、前処理としてensure_userタスクを実行 after :finishing, :notify →finishingタスク実行後に、後処理としてnotifyタスクを実行
before句、after句が書かれている個所で実行されるのではなく、before句、after句に記載しているタスクが実行される際に、関連されるタスクが実行される。