Services\ModuleBuilder::copyTemplate PHP Method

copyTemplate() private method

Copy the module template to a temporary directory
private copyTemplate ( )
    private function copyTemplate()
    {
        if (!File::exists($this->templatePath)) {
            throw new Exception('The module template directory "' . $this->templatePath . '" doesn\'t exist.');
        }
        File::exists($this->temp_dir) && File::delete($this->temp_dir);
        File::copyDirectory($this->templatePath, $this->temp_dir);
    }