Skip to content

LegionIO/lex-pushover

lex-pushover

Pushover push notification integration for LegionIO. Send notifications to Pushover-connected devices with configurable priority levels.

Installation

gem install lex-pushover

Or add to your Gemfile:

gem 'lex-pushover'

Runners

Method Priority Description
push default Send a notification
emergency 2 Emergency priority (requires acknowledgment)
high 1 High priority
normal 0 Normal priority
low -1 Low priority
lowest -2 Lowest priority

All methods accept: message (required), title, token, user, device, url, url_title, sound, expire, retry, callback.

Example Payloads

{"message": "Hello World!"}
{"title": "Alert", "message": "Disk space low", "priority": 1}

Configuration

Token and user can be set globally in Legion settings or passed per-message:

{
  "extensions": {
    "pushover": {
      "enabled": true,
      "token": "your_app_token",
      "user": "your_user_key"
    }
  }
}

Standalone Client

require 'legion/extensions/pushover'

client = Legion::Extensions::Pushover::Client.new(user_key: 'uXXX', api_token: 'aXXX')
client.push(message: 'Deploy complete')
client.high(message: 'Disk usage above 90%', title: 'Alert')

Credentials passed to Client.new are merged with per-call kwargs; per-call values take precedence.

Requirements

  • Ruby >= 3.4
  • Pushover account (user key + API token)
  • LegionIO framework (optional for standalone client)

License

MIT

About

No description or website provided.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE.txt

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors