Commit a7304432 authored by Stan Hu's avatar Stan Hu

Fix `rake services:doc` generation

[ci skip]
parent 996f5155
...@@ -27,3 +27,9 @@ You can find results under the `doc/code` directory. ...@@ -27,3 +27,9 @@ You can find results under the `doc/code` directory.
``` ```
bundle exec rake gitlab:generate_docs bundle exec rake gitlab:generate_docs
``` ```
## Generate API documentation for project services (e.g. Slack)
```
bundle exec rake services:doc
```
...@@ -44,7 +44,7 @@ DELETE /projects/:id/services/<%= service[:dashed_name] %> ...@@ -44,7 +44,7 @@ DELETE /projects/:id/services/<%= service[:dashed_name] %>
ERB ERB
namespace :services do namespace :services do
task :doc do task doc: :environment do
services = Service.available_services_names.map do |s| services = Service.available_services_names.map do |s|
service_start = Time.now service_start = Time.now
klass = "#{s}_service".classify.constantize klass = "#{s}_service".classify.constantize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment