protected function executeDeploy($method, DeployBase $deploy)
    {
        $this->say('Deploy has initialized!');
        $deploy->beforeDeploy();
        $this->executeCommandHook($method, 'before_deploy');
        $deploy->onDeploy();
        $this->executeCommandHook($method, 'after_deploy');
        $deploy->afterDeploy();
        $this->say('Deploy has completed!');

        return $this;
    }
protected function executeDeploy($method, DeployBase $deploy)
    {
        $this->say('Deploy has initialized!');
        $deploy->beforeDeploy();
        $this->executeCommandHook($method, 'before_deploy');
        $deploy->onDeploy();
        $this->executeCommandHook($method, 'after_deploy');
        $deploy->afterDeploy();
        $this->say('Deploy has completed!');

        return $this;
    }
protected function executeDeploy ( $ method , DeployBase $ deploy ) { $ this -> say ( 'Deploy has initialized!' ) ; $ deploy -> beforeDeploy ( ) ; $ this -> executeCommandHook ( $ method , 'before_deploy' ) ; $ deploy -> onDeploy ( ) ; $ this -> executeCommandHook ( $ method , 'after_deploy' ) ; $ deploy -> afterDeploy ( ) ; $ this -> say ( 'Deploy has completed!' ) ; return $ this ; }
Execute deployment process.

@param $method
@param DeployBase $deploy

@return self
@throws \Psr\Container\ContainerExceptionInterface
@throws \Psr\Container\NotFoundExceptionInterface
Execute deployment process .