Class: Test::Unit::Notify::Growlnotify

### Home Classes Methods

### In Files

- lib/test/unit/notify.rb

### Parent

Test::Unit::Notify::NotifyCommand

### Methods

- ::new
- #run

### Class/Module Index

Quicksearch

- Test
- Test::Unit
- Test::Unit::Notify
- Test::Unit::Notify::Growlnotify
- Test::Unit::Notify::Notifier
- Test::Unit::Notify::NotifyCommand
- Test::Unit::Notify::NotifySend

No matching classes.

# Test::Unit::Notify::Growlnotify

@private

### Public Class Methods

new() click to toggle source

    # File lib/test/unit/notify.rb, line 128
    def initialize
      @command = "growlnotify"
    end

### Public Instance Methods

run(parameters) click to toggle source

    # File lib/test/unit/notify.rb, line 132
    def run(parameters)
      priority = urgency_to_piroity(parameters[:urgency])
      title = parameters[:title]
      message = parameters[:message]
      image = parameters[:icon]

      command_line = [@command,
                      "--priority", priority,
                      "--message", message]
      command_line.concat(["--image", image.to_s]) if image
      command_line << title
      system(*command_line)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.