Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 18:26:23 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 18:26:23 +0300
commitd343d9d8c2f3db0ca5f6fab8ad19e0f79f66e138 (patch)
treeb1aa9e241bec55dc283b74fae46e71a907e7be60 /lib/tasks/grape.rake
parenta5ab56fd9191e23dfa60707fa42802342c1563f8 (diff)
Add grape routing print
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks/grape.rake')
-rw-r--r--lib/tasks/grape.rake8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tasks/grape.rake b/lib/tasks/grape.rake
new file mode 100644
index 00000000000..9980e0b7984
--- /dev/null
+++ b/lib/tasks/grape.rake
@@ -0,0 +1,8 @@
+namespace :grape do
+ desc 'Print compiled grape routes'
+ task routes: :environment do
+ API::API.routes.each do |route|
+ puts route
+ end
+ end
+end