To upgrade Redmine, I need SVN to test our Redmine installation from our post-commit hook. Our post-commit hook is a Ruby script that generates an email. I would like to insert a call:
curl --insecure https://redmineserver+webappkey
This call works from the command line, but when I try to do this:
#!/usr/bin/ruby -w REFRESH_DRADIS_URL = "https://redmineserver+webappkey" system("/usr/bin/curl", "--insecure", "#{REFRESH_DRADIS_URL}")
This does not work. How to do it in ruby? I googled a “ruby curl system”, but I have a bunch of links to integrate curl into ruby (which is NOT what interests me).
ruby curl
Avery
source share