Skip to content

Instantly share code, notes, and snippets.

@muraoka-edo
Created September 27, 2014 12:44
Show Gist options
  • Save muraoka-edo/2e1a4bc0e89fa99d0f07 to your computer and use it in GitHub Desktop.
Save muraoka-edo/2e1a4bc0e89fa99d0f07 to your computer and use it in GitHub Desktop.
[Ruby] growl
#!/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