Sha256: c0b780ee35bc5e916e19bde849af3044547a914d85050d917e856a66cd34d25c

Contents?: true

Size: 250 Bytes

Versions: 3

Compression:

Stored size: 250 Bytes

Contents

unless defined?(Rails)
  desc "display all routes for Grape"
  task :routes do
    ApplicationApi.routes.each do |api|
      method  = api.route_method.ljust(10)
      path    = api.route_path
      puts    "     #{method} #{path}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
napa-0.3.0 lib/tasks/routes.rake
napa-0.2.1 lib/tasks/routes.rake
napa-0.2.0 lib/tasks/routes.rake