Update personal_journal.gemspec

This commit is contained in:
chiu 2019-08-21 14:19:11 +08:00
parent 0213304a02
commit 9be58cc7f3
1 changed files with 5 additions and 2 deletions

View File

@ -7,8 +7,11 @@ 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+'/*/')
all_template.each do |folder| all_template.each do |folder|
begin system ('cp -f '+ app_path + '/personal-journal/modules' + folder + '/modules') begin
rescue puts 'error copy' system ('cp -f '+ app_path + '/personal-journal/modules' + folder + '/modules')
rescue
puts 'error copy'
end
end end
#puts RAILS_ROOT #puts RAILS_ROOT
#system 'ruby get_rail_path.rb' #system 'ruby get_rail_path.rb'