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);
}