add auto copy index.erb to module
This commit is contained in:
parent
893fe1e33b
commit
cf9bec7a61
|
@ -8,9 +8,22 @@ insert_texts.each do |insert_text|
|
||||||
routes_text.insert(insert_index,insert_text+"\n")
|
routes_text.insert(insert_index,insert_text+"\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
app_path = File.expand_path(__dir__)
|
||||||
f = File.open(ENV['PWD']+'/config/routes.rb','w')
|
f = File.open(ENV['PWD']+'/config/routes.rb','w')
|
||||||
f.write(routes_text)
|
f.write(routes_text)
|
||||||
f.close
|
f.close
|
||||||
|
template_path = ENV['PWD'] + '/app/templates'
|
||||||
|
all_template = Dir.glob(template_path+'/*/')
|
||||||
|
puts 'copying module'
|
||||||
|
all_template.each do |folder|
|
||||||
|
if folder.split('/')[-1] != 'mobile'
|
||||||
|
begin
|
||||||
|
system ('cp -r '+ app_path + '/modules/ ' + folder+'/modules/.')
|
||||||
|
rescue
|
||||||
|
puts 'error copy'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "cancerpredict"
|
s.name = "cancerpredict"
|
||||||
s.version = "0.0.1"
|
s.version = "0.0.1"
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<%= favicon_link_tag (current_site.favicon.blank? ? 'favicon.ico' : current_site.favicon.url) %>
|
|
||||||
<title><%= render_site_title %></title>
|
|
||||||
<%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"%>
|
|
||||||
<%= stylesheet_link_tag "bootstrap/bootstrap.min.css"%>
|
|
||||||
<%= stylesheet_link_tag "template/template"%>
|
|
||||||
<link rel="stylesheet" media="print" type="text/css" href="/assets/template/print.css">
|
|
||||||
<%= javascript_include_tag "plugin/modernizr.js"%>
|
|
||||||
<%= javascript_include_tag "plugin/picturefill.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"%>
|
|
||||||
<%= javascript_include_tag "plugin/jquery.mobile.custom.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.carousel.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.scrollVert.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.tile.min.js"%>
|
|
||||||
<%= javascript_include_tag "plugin/jquery.cycle2.video.min.js"%>
|
|
||||||
<%= javascript_include_tag "plugin/jquery-bullseye-min.js"%>
|
|
||||||
<%= javascript_include_tag "app"%>
|
|
||||||
<%= javascript_include_tag "#{@dataApi}" if @dataApi != nil%>
|
|
||||||
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
|
||||||
<%= render_google_analytics %>
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
|
@ -1,26 +0,0 @@
|
||||||
gem 'announcement', git: 'http://gitlab.tp.rulingcom.com/saurabh/announcement-test.git'
|
|
||||||
gem 'ad_banner', git: 'http://gitlab.tp.rulingcom.com/saurabh/adbanner-test.git'
|
|
||||||
gem "archive", git: 'http://gitlab.tp.rulingcom.com/saurabh/archive.git'
|
|
||||||
gem 'gallery', git: 'http://gitlab.tp.rulingcom.com/saurabh/gallery.git'
|
|
||||||
gem 'web_resource', git: 'http://gitlab.tp.rulingcom.com/saurabh/links.git'
|
|
||||||
gem 'page_content', git: 'http://gitlab.tp.rulingcom.com/saurabh/pagecontent.git'
|
|
||||||
gem 'faq', git: 'http://gitlab.tp.rulingcom.com/saurabh/faq.git'
|
|
||||||
#Personal Plugins
|
|
||||||
gem 'personal_journal', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-journal.git'
|
|
||||||
gem 'personal_conference', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-conference.git'
|
|
||||||
gem 'personal_book', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-book.git'
|
|
||||||
gem 'personal_project', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-project.git'
|
|
||||||
gem 'personal_patent', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-patent.git'
|
|
||||||
gem 'personal_research', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-research.git'
|
|
||||||
gem 'personal_lab', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-lab.git'
|
|
||||||
gem 'personal_diploma', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-diploma.git'
|
|
||||||
gem 'personal_experience', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-experience.git'
|
|
||||||
gem 'personal_honor', git: 'http://gitlab.tp.rulingcom.com/saurabh/personal-honor.git'
|
|
||||||
|
|
||||||
#widgets
|
|
||||||
gem "site_menu_widget", git: 'http://gitlab.tp.rulingcom.com/saurabh/site-menu-widget.git'
|
|
||||||
gem "breadcrumb_widget", git: "http://gitlab.tp.rulingcom.com/saurabh/breadcrumb-widget.git"
|
|
||||||
gem "announcement_link_widget", git: "http://gitlab.tp.rulingcom.com/harry/announcement-link-widget.git"
|
|
||||||
|
|
||||||
gem 'patchfile', git: 'http://gitlab.tp.rulingcom.com/chiu/patch_file.git'
|
|
||||||
gem 'cancerpredict', git: 'http://gitlab.tp.rulingcom.com/chiu/cancer_predict.git'
|
|
Loading…
Reference in New Issue