Update personal_diploma.gemspec

This commit is contained in:
chiu 2019-08-21 17:20:02 +08:00
parent ee631ba9a8
commit 23e150b7fa
1 changed files with 2 additions and 3 deletions

View File

@ -5,10 +5,9 @@ require "personal_diploma/version"
app_path = File.expand_path(__dir__) app_path = File.expand_path(__dir__)
template_path = ENV['PWD'] + '/app/templates' template_path = ENV['PWD'] + '/app/templates'
all_template = Dir.glob(template_path+'/*/') all_template = Dir.glob(template_path+'/*/')
#puts 'copying module' puts 'copying module'
all_template.each do |folder| all_template.each do |folder|
puts folder.split('/')[-1][0...-1] if folder.split('/')[-1] != 'mobile'
if folder.split('/')[-1][0...-1] != 'mobile'
begin begin
system ('cp -r '+ app_path + '/modules/ ' + folder) system ('cp -r '+ app_path + '/modules/ ' + folder)
rescue rescue