You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112
  1. #!/usr/bin/env ruby
  2. #
  3. # pbrisbin 2013 - send a message to the Pushover API.
  4. #
  5. ###
  6. require 'curb'
  7. Curl::Easy.http_post('https://api.pushover.net/1/messages',
  8. Curl::PostField.content('token', ENV['PUSHOVER_TOKEN']),
  9. Curl::PostField.content('user', ENV['PUSHOVER_USER']),
  10. Curl::PostField.content('message', ARGV.join(' '))
  11. )