0.0
No commit activity in last 3 years
No release in over 3 years
Output status messages from your scripts/programs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 5.0
~> 10.0
 Project Readme

Notifaction

Include terminal and OS notifications in your project.

Usage

gem install notifaction

# ...
require 'notifaction'

# Print an angry red terminal message
# Other methods:
# - success (green)
# - info (blue)
# - note (light blue)
# - warning (yellow)
# - spit (no colour/white)
begin
  call_method
rescue => e
  Notify.error(e.message)
end

# display a bubble notification in OSX and Linux
if install_successful
  Notify.bubble("You can now proceed to use our software...", "Install Successful")
end

Plugins extend the base notification functionality, sending messages to online services. This example will show you how to send log information to a 3rd party service.

# ~/.notifaction.yml

hooks:
    - "https://api.yourwebsite.com/messages/receive?token=1am4t0k3n"

That's it. You will start receiving POST requests at the URL(s) listed in the hooks section of the configuration file.