public function deploy($version, $stage)
    {
        $deploymentStrategy = $this->getContainer()->get('deployment_strategy');

        $result = $deploymentStrategy->deploy($version, $stage);

        $this->dispatch(AccompliEvents::DEPLOY_COMMAND_COMPLETE);

        return $result;
    }
public function deploy($version, $stage)
    {
        $deploymentStrategy = $this->getContainer()->get('deployment_strategy');

        $result = $deploymentStrategy->deploy($version, $stage);

        $this->dispatch(AccompliEvents::DEPLOY_COMMAND_COMPLETE);

        return $result;
    }
public function deploy ( $ version , $ stage ) { $ deploymentStrategy = $ this -> getContainer ( ) -> get ( 'deployment_strategy' ) ; $ result = $ deploymentStrategy -> deploy ( $ version , $ stage ) ; $ this -> dispatch ( AccompliEvents :: DEPLOY_COMMAND_COMPLETE ) ; return $ result ; }
Triggers the deployment on the configured deployment strategy.

@param string $version
@param string $stage

@return bool
Triggers the deployment on the configured deployment strategy .