protected function handleAction(Config\Action $action) : void
    {
        $this->io->write(['', 'Action: <comment>' . $action->getAction() . '</comment>']);

        if (!$this->doConditionsApply($action->getConditions())) {
            $this->io->write(
                ['', 'Skipped due to failing conditions']
            );
            return;
        }

        $execMethod = self::getExecMethod(Util::getExecType($action->getAction()));
        $this->{$execMethod}($action);
    }
protected function handleAction(Config\Action $action) : void
    {
        $this->io->write(['', 'Action: <comment>' . $action->getAction() . '</comment>']);

        if (!$this->doConditionsApply($action->getConditions())) {
            $this->io->write(
                ['', 'Skipped due to failing conditions']
            );
            return;
        }

        $execMethod = self::getExecMethod(Util::getExecType($action->getAction()));
        $this->{$execMethod}($action);
    }
protected function handleAction ( Config \ Action $ action ) : void { $ this -> io -> write ( [ '' , 'Action: <comment>' . $ action -> getAction ( ) . '</comment>' ] ) ; if ( ! $ this -> doConditionsApply ( $ action -> getConditions ( ) ) ) { $ this -> io -> write ( [ '' , 'Skipped due to failing conditions' ] ) ; return ; } $ execMethod = self :: getExecMethod ( Util :: getExecType ( $ action -> getAction ( ) ) ) ; $ this -> { $ execMethod } ( $ action ) ; }
Executes a configured hook action

@param  \CaptainHook\App\Config\Action $action
@return void
@throws \Exception
Executes a configured hook action