acidprime/r10k — pull request #58 by terrimonster (2014-07-16 14:59:08+00:00)
Title: chomp makes the baby ruby cry

chomp was causing an error during my test:

curl -d '{ "ref": "refs/heads/production" }' -H "Accept: application/json" 'http://puppet:puppet@:8088/payload' -k -q
NoMethodError: undefined method `chomp' for nil:NilClass

changing 'chomp' to 'to_s' corrected the problem and resulted in a successful test:

curl -d '{ "ref": "refs/heads/production" }' -H "Accept: application/json" 'http://puppet:puppet@:8088/payload' -k -q
{"status":"success","message":"triggered: mco r10k deploy _production -p"}