diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-03-01 13:51:36 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-03-01 13:51:36 +0300 |
commit | 7aa9ec7aa11fee1de915a15c15b5ee164b2f51a4 (patch) | |
tree | 696fa6fb298a54561960c7e7d43e6a81173bf98b /plugins/examples | |
parent | bac9bb1866f47f0b1515b8705ea9eba1fa9b9ced (diff) | |
parent | a96ba41f229bd3606696e8e3a6500730e6cb8f63 (diff) |
Merge branch 'dz-system-hooks-plugins' into 'master'
Add ability to use external plugins as system hooks
See merge request gitlab-org/gitlab-ce!17003
Diffstat (limited to 'plugins/examples')
-rwxr-xr-x | plugins/examples/save_to_file.clj | 3 | ||||
-rwxr-xr-x | plugins/examples/save_to_file.rb | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/examples/save_to_file.clj b/plugins/examples/save_to_file.clj new file mode 100755 index 00000000000..a59d83749d3 --- /dev/null +++ b/plugins/examples/save_to_file.clj @@ -0,0 +1,3 @@ +#!/usr/bin/env clojure +(let [in (slurp *in*)] + (spit "/tmp/clj-data.txt" in)) diff --git a/plugins/examples/save_to_file.rb b/plugins/examples/save_to_file.rb new file mode 100755 index 00000000000..61b0df9bfd6 --- /dev/null +++ b/plugins/examples/save_to_file.rb @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +x = STDIN.read +File.write('/tmp/rb-data.txt', x) |