Banago\PHPloy\PHPloy::listFiles PHP Метод

listFiles() публичный Метод

Check what files will be uploaded/deleted.
public listFiles ( array $files )
$files array
    public function listFiles($files)
    {
        if (count($files['upload']) == 0 && count($files['delete']) == 0) {
            $this->cli->out('   No files to upload.');
        }
        if (count($files['delete']) > 0) {
            $this->cli->shout('   Files that will be deleted in next deployment:');
            foreach ($files['delete'] as $file_to_delete) {
                $this->cli->out('      ' . $file_to_delete);
            }
        }
        if (count($files['upload']) > 0) {
            $this->cli->lightGreen('   Files that will be uploaded in next deployment:');
            foreach ($files['upload'] as $file_to_upload) {
                $this->cli->out('      ' . $file_to_upload);
            }
        }
    }