Module: Growl

Extended by:
Growl
Included in:
Growl
Defined in:
lib/simple_growl/guard.rb

Instance Method Summary collapse

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/simple_growl/guard.rb', line 6

def installed?
  File.exists?('/usr/bin/osascript')
end

#notify(msg, opts = {:title => "Guard"}) ⇒ Object



9
10
11
# File 'lib/simple_growl/guard.rb', line 9

def notify(msg, opts = {:title => "Guard"})
  ::SimpleGrowl.notify(opts[:title] || "Guard", msg)
end