Sha256: 7e9f5b93499a62804c36eae389d999212937f3c154fa4c4c67ce920ba5bf1226

Contents?: true

Size: 317 Bytes

Versions: 22

Compression:

Stored size: 317 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gris-0.0.3 lib/tasks/routes.rake
gris-0.0.2 lib/tasks/routes.rake