support dynamic name directory in template

This commit is contained in:
toshiwo
2013-11-25 22:31:12 +09:00
committed by Watson
parent 8ac9cfb2b6
commit 21574894d6

View File

@@ -93,6 +93,7 @@ module Motion; module Project
template_files = File.join(template_directory, 'files')
Dir.glob(File.join(template_files, "**/")).each do |dir|
dir.sub!("#{template_files}/", '')
dir = replace_file_name(dir)
FileUtils.mkdir_p(dir) if dir.length > 0
end
end