puppetlabs/puppetdb-ruby — pull request #5 by robinbowes (2014-01-14 13:32:29+00:00)
Title: Feature/post support

Here's a "command" method that uses the HTTParty post method to submit commands to the /commands API endpoint.

I have successfully used it with both the "replace catalog" and "replace facts" commands.