diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-21 15:21:10 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-21 15:21:10 +0000 |
commit | e33f87ac0fabaab468ce4b457996cc0f1b1bb648 (patch) | |
tree | 8bf0de72a9acac014cfdaddab7d463b208294af2 /file_hooks | |
parent | 5baf990db20a75078684702782c24399ef9eb0fa (diff) | |
download | gitlab-ce-e33f87ac0fabaab468ce4b457996cc0f1b1bb648.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'file_hooks')
-rw-r--r-- | file_hooks/.gitignore | 5 | ||||
-rwxr-xr-x | file_hooks/examples/save_to_file.clj | 3 | ||||
-rwxr-xr-x | file_hooks/examples/save_to_file.rb | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/file_hooks/.gitignore b/file_hooks/.gitignore new file mode 100644 index 00000000000..e4ccdc9e2ec --- /dev/null +++ b/file_hooks/.gitignore @@ -0,0 +1,5 @@ +* +!*/ +!.gitignore +!.gitkeep +!examples/* diff --git a/file_hooks/examples/save_to_file.clj b/file_hooks/examples/save_to_file.clj new file mode 100755 index 00000000000..a59d83749d3 --- /dev/null +++ b/file_hooks/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/file_hooks/examples/save_to_file.rb b/file_hooks/examples/save_to_file.rb new file mode 100755 index 00000000000..61b0df9bfd6 --- /dev/null +++ b/file_hooks/examples/save_to_file.rb @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +x = STDIN.read +File.write('/tmp/rb-data.txt', x) |