summaryrefslogtreecommitdiff
path: root/plugins/examples/save_to_file.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 13:32:14 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 16:06:49 +0200
commitba95015a09bc465533666b38609b4fb1e0177139 (patch)
tree84ada24323df9ff744061309600d50264698dd00 /plugins/examples/save_to_file.rb
parent645dceb0a233fc523ac16611fa3fec317d29a7e1 (diff)
downloadgitlab-ce-ba95015a09bc465533666b38609b4fb1e0177139.tar.gz
Reorganize plugins dir structure
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'plugins/examples/save_to_file.rb')
-rwxr-xr-xplugins/examples/save_to_file.rb3
1 files changed, 3 insertions, 0 deletions
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)