Sha256: c72b881d3154fb3bffd124a5a2a42866f0ebbcc9b3426dbd0e2f57fe0ce04c09

Contents?: true

Size: 215 Bytes

Versions: 14

Compression:

Stored size: 215 Bytes

Contents

desc "display all routes"
task :routes do
  grape_apis = ObjectSpace.each_object(Class).select { |klass| klass < Grape::API }
  grape_apis.each do |api|
    api.routes.each do |r|
      puts "#{r}"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
napa-0.1.16 lib/tasks/routes.rake
napa-0.1.15 lib/tasks/routes.rake
napa-0.1.14 lib/tasks/routes.rake
napa-0.1.12 lib/tasks/routes.rake
napa-0.1.13 lib/tasks/routes.rake
napa-0.1.11 lib/tasks/routes.rake
napa-0.1.10 lib/tasks/routes.rake
napa-0.1.7 lib/tasks/routes.rake
napa-0.1.6 lib/tasks/routes.rake
napa-0.1.4 lib/tasks/routes.rake
napa-0.1.3 lib/tasks/routes.rake
napa-0.1.2 lib/tasks/routes.rake
napa-0.1.1 lib/tasks/routes.rake
napa-0.1.0 lib/tasks/routes.rake