Deployment\Deployer::writeProgress PHP Метод

writeProgress() приватный Метод

private writeProgress ( $count, $total, $path, $percent = NULL, $color = NULL )
    private function writeProgress($count, $total, $path, $percent = NULL, $color = NULL)
    {
        $len = strlen((string) $total);
        $s = sprintf("(% {$len}d of %-{$len}d) %s", $count, $total, $path);
        if ($percent === NULL) {
            $this->logger->log($s, $color);
        } else {
            $this->logger->progress($s . ' [' . round($percent) . "%]");
        }
    }