Commit c1bebd4c4670ce1d5eae712eaba0153774cb37c8
1 parent
39a64217
Exists in
master
and in
11 other branches
Move grape_routes task to its own file
Showing
2 changed files
with
10 additions
and
12 deletions
Show diff stats
Rakefile
| @@ -21,15 +21,3 @@ end | @@ -21,15 +21,3 @@ end | ||
| 21 | plugins_tasks = Dir.glob("config/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort + | 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 | 22 | Dir.glob("config/plugins/*/vendor/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort |
| 23 | plugins_tasks.each{ |ext| load ext } | 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 |
| @@ -0,0 +1,10 @@ | @@ -0,0 +1,10 @@ | ||
| 1 | +desc "Print out grape routes" | ||
| 2 | +task :grape_routes => :environment do | ||
| 3 | + #require 'api/api.rb' | ||
| 4 | + Noosfero::API::API.routes.each do |route| | ||
| 5 | + puts route | ||
| 6 | + method = route.route_method | ||
| 7 | + path = route.route_path | ||
| 8 | + puts " #{method} #{path}" | ||
| 9 | + end | ||
| 10 | +end |