summaryrefslogtreecommitdiff
path: root/file_hooks/examples/save_to_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'file_hooks/examples/save_to_file.rb')
-rwxr-xr-xfile_hooks/examples/save_to_file.rb3
1 files changed, 3 insertions, 0 deletions
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)