Sha256: 9093cae6459308a18e5bc192e2cae0e7faf6993197c64417198fa1118d1f8e53

Contents?: true

Size: 330 Bytes

Versions: 25

Compression:

Stored size: 330 Bytes

Contents

unless defined?(Rails)
  desc 'display all routes for Grape'
  task routes: :environment 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

25 entries across 25 versions & 1 rubygems

Version Path
gris-0.3.6 lib/tasks/routes.rake
gris-0.3.4 lib/tasks/routes.rake
gris-0.3.3 lib/tasks/routes.rake
gris-0.3.2 lib/tasks/routes.rake
gris-0.3.1 lib/tasks/routes.rake