Sha256: 6352f3ef3c2a2bf8190653b1f341badd85890cf1597d03d9d6efe4f290abffb7

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 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.ljust(40)
      description = api.route_description
      puts        "     #{method} #{path} # #{description}"
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
napa-0.5.0 lib/tasks/routes.rake
service_template-0.5.2 lib/tasks/routes.rake
napa-0.4.3 lib/tasks/routes.rake
service_template-0.5.1 lib/tasks/routes.rake
service_template-0.5.0 lib/tasks/routes.rake
napa-0.4.1 lib/tasks/routes.rake
napa-0.4.0 lib/tasks/routes.rake