Sha256: e6f73eacc7f618de0819874e269117fb1a4db10d87d066cca71cf2ac8e0f825b

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

module Sidekick::Helpers::UserInteraction
  def notify(message, title='Sidekick')

    log "NOTIFY #{title}: #{message}"
    case platform
      when :linux
        needs 'libnotify', 'to display status messages on linux'
        Libnotify.show :body => message, :summary => title
      when :darwin
        needs 'growl', 'to display status messages on a Mac.'
        Growl.notify message, :title => title, :name => 'Sidekick'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekick-0.6.2 lib/sidekick/helpers/user_interaction.rb