Last active
July 7, 2017 05:30
-
-
Save awilliams000/28a024c2dc65f4b8a6f976a054845cfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### post commit webcam (begin) ### | |
#!/usr/bin/env ruby | |
file="~/.gitshots/#{Time.now.to_i}.jpg" | |
unless File.directory?(File.expand_path("../../rebase-merge", __FILE__)) | |
puts "Taking capture into #{file}!" | |
system "imagesnap -q -w 3 #{file} &" | |
end | |
exit 0 | |
### post commit webcam (end) ### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment