GitS3\Console\Commands\DeployCommand::deployCurrentCommit PHP Method

deployCurrentCommit() private method

private deployCurrentCommit ( )
    private function deployCurrentCommit()
    {
        $application = $this->getApplication();
        $history = $application->getHistory();
        $diff = new Diff($application->getRepository(), $history->getLastHash());
        $filesToUpload = $diff->getFilesToUpload();
        $filesToDelete = $diff->getFilesToDelete();
        foreach ($this->finder as $file) {
            if (in_array($file->getRelativePathname(), $filesToUpload)) {
                $this->uploadFile($file);
            }
        }
        foreach ($filesToDelete as $fileName) {
            $this->deleteFile($fileName);
        }
    }