Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

optionally send a notification on start

  • Loading branch information...
commit 97aa76a94157f78344fb9df916ce7146c454e89c 1 parent 75f7e6e
Lawrence Wang authored

Showing 2 changed files with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  README.md
  2. +3 0  lib/guard/spork/runner.rb
3  README.md
Source Rendered
@@ -105,7 +105,8 @@ Available options:
105 105 :test_unit_env => { 'RAILS_ENV' => 'baz' } # Default: nil
106 106 :rspec_env => { 'RAILS_ENV' => 'foo' } # Default: nil
107 107 :cucumber_env => { 'RAILS_ENV' => 'bar' } # Default: nil
108   -:aggressive_kill => false # Default: true, will search Spork pids from `ps aux` and kill them all on start.
  108 +:aggressive_kill => false # Default: true, will search Spork pids from `ps aux` and kill them all on start.
  109 +:notify_on_start => true # Default: false, will notify as soon as starting begins.
109 110 ```
110 111
111 112 ## Common troubleshooting
3  lib/guard/spork/runner.rb
@@ -22,6 +22,9 @@ def initialize(options={})
22 22 def launch_sporks(action, type = nil)
23 23 instances = find_instances(type)
24 24 UI.info "#{action.capitalize}ing Spork for #{instances.join(', ')}", :reset => true
  25 + if options[:notify_on_start]
  26 + Notifier.notify "#{action.capitalize}ing #{instances.join(', ')}", :title => "Spork", :image => :success
  27 + end
25 28 instances.each(&:start)
26 29 verify_launches(action, instances)
27 30 end

0 comments on commit 97aa76a

Please sign in to comment.
Something went wrong with that request. Please try again.