diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-26 13:32:14 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-26 16:06:49 +0200 |
commit | ba95015a09bc465533666b38609b4fb1e0177139 (patch) | |
tree | 84ada24323df9ff744061309600d50264698dd00 /plugins/examples | |
parent | 645dceb0a233fc523ac16611fa3fec317d29a7e1 (diff) | |
download | gitlab-ce-ba95015a09bc465533666b38609b4fb1e0177139.tar.gz |
Reorganize plugins dir structure
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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) |