summaryrefslogtreecommitdiff
path: root/doc/raketasks
diff options
context:
space:
mode:
authorJonhnny Weslley <jonhnny@credishop.com.br>2013-06-05 11:32:22 -0300
committerJonhnny Weslley <jonhnny@credishop.com.br>2013-06-05 11:32:22 -0300
commit5a906b1d12899675e1a2932beb29d6cfc10539c7 (patch)
tree96fe08a68c2d4fcfc384bfda536038a4d515cf2c /doc/raketasks
parent836b561a12a6954c5bbc87bc8fbc0f51636f71c5 (diff)
downloadgitlab-ce-5a906b1d12899675e1a2932beb29d6cfc10539c7.tar.gz
add help page for web hooks management using rake tasks
Diffstat (limited to 'doc/raketasks')
-rw-r--r--doc/raketasks/web_hooks.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/raketasks/web_hooks.md b/doc/raketasks/web_hooks.md
new file mode 100644
index 00000000000..1ca5bacb9d1
--- /dev/null
+++ b/doc/raketasks/web_hooks.md
@@ -0,0 +1,31 @@
+### Add a web hook for **ALL** projects:
+
+ RAILS_ENV=production bundle exec rake gitlab:web_hook:add URL="http://example.com/hook"
+
+
+### Add a web hook for projects in a given **NAMESPACE**:
+
+ RAILS_ENV=production bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
+
+
+### Remove a web hook from **ALL** projects using:
+
+ RAILS_ENV=production bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook"
+
+
+### Remove a web hook from projects in a given **NAMESPACE**:
+
+ RAILS_ENV=production bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
+
+
+### List **ALL** web hooks:
+
+ RAILS_ENV=production bundle exec rake gitlab:web_hook:list
+
+
+### List the web hooks from projects in a given **NAMESPACE**:
+
+ RAILS_ENV=production bundle exec rake gitlab:web_hook:list NAMESPACE=/
+
+> Note: `/` is the global namespace.
+