Rewrite github script in Ruby, add copying via ssh.