forked from saurabh/personal-diploma
Update personal_diploma.gemspec
This commit is contained in:
parent
ee631ba9a8
commit
23e150b7fa
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue