gitlab-org--gitlab-foss/file_hooks/examples/save_to_file.rb

3 lines
70 B
Ruby
Executable file

#!/usr/bin/env ruby
x = $stdin.read
File.write('/tmp/rb-data.txt', x)