Commit eb8a178939a6bf22407359e3f39abdcfe3d2d4f3

Authored by Arthur Esposte
Committed by Tallys Martins
1 parent c3f4eb07

Remove redundant load of plugins' rake tasks

(cherry picked from commit f79ff688f8a623c30607d8a9ca107d6b0d2dceaf)

Conflicts:
	Rakefile
Showing 1 changed file with 1 additions and 23 deletions   Show diff stats
@@ -15,31 +15,8 @@ Noosfero::Application.load_tasks @@ -15,31 +15,8 @@ Noosfero::Application.load_tasks
15 Dir.glob(pattern).sort 15 Dir.glob(pattern).sort
16 end.flatten.each do |taskfile| 16 end.flatten.each do |taskfile|
17 load taskfile 17 load taskfile
18 -end  
19 -  
20 -# plugins' tasks  
21 -plugins_tasks = Dir.glob("config/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort +  
22 - Dir.glob("config/plugins/*/vendor/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort  
23 -plugins_tasks.each{ |ext| load ext }  
24 -  
25 -  
26 -desc "Print out grape routes"  
27 -task :grape_routes => :environment do  
28 - #require 'api/api.rb'  
29 - Noosfero::API::API.routes.each do |route|  
30 - puts route  
31 - method = route.route_method  
32 - path = route.route_path  
33 - puts " #{method} #{path}"  
34 - end  
35 end 18 end
36 19
37 -# plugins' tasks  
38 -plugins_tasks = Dir.glob("config/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort +  
39 - Dir.glob("config/plugins/*/vendor/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort  
40 -plugins_tasks.each{ |ext| load ext }  
41 -  
42 -  
43 desc "Print out grape routes" 20 desc "Print out grape routes"
44 task :grape_routes => :environment do 21 task :grape_routes => :environment do
45 #require 'api/api.rb' 22 #require 'api/api.rb'
@@ -50,3 +27,4 @@ task :grape_routes => :environment do @@ -50,3 +27,4 @@ task :grape_routes => :environment do
50 puts " #{method} #{path}" 27 puts " #{method} #{path}"
51 end 28 end
52 end 29 end
  30 +