Module: Sidekick::Actions::UserInteraction
- Defined in:
- lib/sidekick/actions/user_interaction.rb
Instance Method Summary collapse
Instance Method Details
#notify(message, title = 'Sidekick') ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/sidekick/actions/user_interaction.rb', line 3 def notify(, title='Sidekick') log "NOTIFY #{title}: #{}" case platform when :linux needs 'libnotify', 'to display status messages on linux' Libnotify.show :body => , :summary => title when :darwin needs 'growl', 'to display status messages on a Mac.' Growl.notify , :title => title, :name => 'Sidekick' end end |