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

3 lines
69 B
Ruby
Executable file

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