Accomplished easily enough with a curl but I thought it'd be nice to be able to do this from the CLI/Ruby class as well. An example use case might be using the class itself (or even shelling out w/ less room for error than w/ curl) via a Lita bot add someone to Papertrail.
I tried to mimc the style of the rest of the code, but let me know if there's anything you'd like to see done differently. Thanks in advance!
Accomplished easily enough with a
curl
but I thought it'd be nice to be able to do this from the CLI/Ruby class as well. An example use case might be using the class itself (or even shelling out w/ less room for error than w/curl
) via a Lita bot add someone to Papertrail.I tried to mimc the style of the rest of the code, but let me know if there's anything you'd like to see done differently. Thanks in advance!