From bfd3d66ec24d295e2bc765bcb73693a14134cc3b Mon Sep 17 00:00:00 2001 From: Rich Daley Date: Mon, 7 Jan 2019 14:09:50 +0000 Subject: [PATCH] Add a 'rake rswag' that runs swaggerize as the default --- README.md | 2 ++ rswag-specs/lib/tasks/rswag-specs_tasks.rake | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 08f0157..48fd461 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,8 @@ Once you have an API that can describe itself in Swagger, you've opened the trea rake rswag:specs:swaggerize ``` + This common command is also aliased as `rake rswag`. + 5. Spin up your app and check out the awesome, auto-generated docs at _/api-docs_! ## The rspec DSL ## diff --git a/rswag-specs/lib/tasks/rswag-specs_tasks.rake b/rswag-specs/lib/tasks/rswag-specs_tasks.rake index adc128c..b7d276b 100644 --- a/rswag-specs/lib/tasks/rswag-specs_tasks.rake +++ b/rswag-specs/lib/tasks/rswag-specs_tasks.rake @@ -16,3 +16,6 @@ namespace :rswag do end end end + +task :rswag => ['rswag:specs:swaggerize'] +