Commit 5ad09f38 authored by Evan Read's avatar Evan Read

Merge branch 'docs-webhooks-spacing' into 'master'

Docs: Fix spacing in code blocks in webhook raketask doc

See merge request gitlab-org/gitlab-ce!30208
parents 68fc36d8 a2767e2b
...@@ -3,53 +3,53 @@ ...@@ -3,53 +3,53 @@
## Add a webhook for **ALL** projects: ## Add a webhook for **ALL** projects:
```sh ```sh
# omnibus-gitlab # omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
# source installations # source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
``` ```
## Add a webhook for projects in a given **NAMESPACE**: ## Add a webhook for projects in a given **NAMESPACE**:
```sh ```sh
# omnibus-gitlab # omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
# source installations # source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
``` ```
## Remove a webhook from **ALL** projects using: ## Remove a webhook from **ALL** projects using:
```sh ```sh
# omnibus-gitlab # omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
# source installations # source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
``` ```
## Remove a webhook from projects in a given **NAMESPACE**: ## Remove a webhook from projects in a given **NAMESPACE**:
```sh ```sh
# omnibus-gitlab # omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
# source installations # source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
``` ```
## List **ALL** webhooks: ## List **ALL** webhooks:
```sh ```sh
# omnibus-gitlab # omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list sudo gitlab-rake gitlab:web_hook:list
# source installations # source installations
bundle exec rake gitlab:web_hook:list RAILS_ENV=production bundle exec rake gitlab:web_hook:list RAILS_ENV=production
``` ```
## List the webhooks from projects in a given **NAMESPACE**: ## List the webhooks from projects in a given **NAMESPACE**:
```sh ```sh
# omnibus-gitlab # omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=acme sudo gitlab-rake gitlab:web_hook:list NAMESPACE=acme
# source installations # source installations
bundle exec rake gitlab:web_hook:list NAMESPACE=acme RAILS_ENV=production bundle exec rake gitlab:web_hook:list NAMESPACE=acme RAILS_ENV=production
``` ```
\ No newline at end of file
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