Commit 79b773e8c513b079ac9584734903c5d3598d7c27
1 parent
244964d4
Exists in
master
and in
5 other branches
Improve tasks
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
2 changed files
with
11 additions
and
3 deletions
Show diff stats
lib/tasks/main_data.rake
| ... | ... | @@ -3,8 +3,16 @@ |
| 3 | 3 | |
| 4 | 4 | namespace :main_data do |
| 5 | 5 | desc "Create the main community and its contents" |
| 6 | - task :all => :environment do | |
| 6 | + task :populate => :environment do | |
| 7 | 7 | Rake::Task["main_data:community"].invoke |
| 8 | + Rake::Task["templates:create:all"].invoke | |
| 9 | + end | |
| 10 | + | |
| 11 | + desc "Create the main community and its contents" | |
| 12 | + task :all => :environment do | |
| 13 | + Rake::Task["main_data:destroy"].invoke | |
| 14 | + Rake::Task["templates:destroy"].invoke | |
| 15 | + Rake::Task["main_data:populate"].invoke | |
| 8 | 16 | end |
| 9 | 17 | |
| 10 | 18 | desc "Create the main community" |
| ... | ... | @@ -111,7 +119,7 @@ namespace :main_data do |
| 111 | 119 | third_link_list_block.fixed = true |
| 112 | 120 | third_link_list_block.save! |
| 113 | 121 | |
| 114 | - third_link_list_block.links << {:icon => "no-icon", :name => "Catálogo de Software Público", :address => "#", :target => "_self"} | |
| 122 | + third_link_list_block.links << {:icon => "no-icon", :name => "Catálogo de Software Público", :address => "/search/software_infos", :target => "_self"} | |
| 115 | 123 | third_link_list_block.links << {:icon => "no-icon", :name => "Comunidades", :address => "/search/communities", :target => "_self"} |
| 116 | 124 | |
| 117 | 125 | third_link_list_block.save! | ... | ... |
lib/tasks/templates.rake
| ... | ... | @@ -355,7 +355,7 @@ namespace :templates do |
| 355 | 355 | third_link_list_block.fixed = true |
| 356 | 356 | third_link_list_block.save! |
| 357 | 357 | |
| 358 | - third_link_list_block.links << {:icon => "no-icon", :name => "Catálogo de Software Público", :address => "#", :target => "_self"} | |
| 358 | + third_link_list_block.links << {:icon => "no-icon", :name => "Catálogo de Software Público", :address => "/search/software_infos", :target => "_self"} | |
| 359 | 359 | third_link_list_block.links << {:icon => "no-icon", :name => "Comunidades", :address => "/search/communities", :target => "_self"} |
| 360 | 360 | |
| 361 | 361 | third_link_list_block.save! | ... | ... |