Created
September 27, 2014 12:44
-
-
Save muraoka-edo/2e1a4bc0e89fa99d0f07 to your computer and use it in GitHub Desktop.
[Ruby] growl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'ruby-growl/ruby_logo' | |
pass = 'himitsu' | |
title = 'From Ruby' | |
message = 'Hello Ruby' | |
g = Growl.new "localhost", "ruby-growl" | |
g.password = pass | |
g.add_notification("notification", "ruby-growl") | |
g.notify "notification", title, message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment