Sha256: 6df76535db0b56e26b163d91e9b481c5aaa665fcccc3a4515b083abc7b815c48

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

task :environment do
  require Bundler.root.join("config", "environment").to_s
end

desc 'Launch console'
task console: :environment do
  ::ARGV.clear

  require 'irb'
  require 'irb/completion'

  IRB.start(Grape::App.root.to_s)
end

desc 'List all routes'
task routes: :environment do
  Grape::App.routes.each do |route|
    method = route.request_method.ljust(7)
    path   = route.path.sub(":version", route.version.to_s)
    puts "  #{method} #{path}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-app-0.5.3 lib/grape/app/tasks/core.rake