Sha256: 0f84582c27d1cf9110191fd037bba210944d8682d6d08675e1adc669d4373a55

Contents?: true

Size: 573 Bytes

Versions: 9

Compression:

Stored size: 573 Bytes

Contents

require 'guard'
require 'guard/guard'

module Guard
  class Spork < Guard

    autoload :Runner, 'guard/spork/runner'
    attr_accessor :runner

    def initialize(watchers=[], options={})
      super
      @runner = Runner.new(options)
    end

    def start
      runner.kill_sporks
      runner.launch_sporks("start")
    end

    def reload
      runner.kill_sporks
      runner.launch_sporks("reload")
    end

    def run_on_change(paths)
      runner.kill_sporks
      runner.launch_sporks("reload")
    end

    def stop
      runner.kill_sporks
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
guard-spork-0.3.2 lib/guard/spork.rb
guard-spork-0.3.1 lib/guard/spork.rb
guard-spork-0.3.0 lib/guard/spork.rb
guard-spork-0.2.1 lib/guard/spork.rb
guard-spork-0.2.0 lib/guard/spork.rb
guard-spork-0.1.11 lib/guard/spork.rb
guard-spork-0.1.10 lib/guard/spork.rb
guard-spork-0.1.9 lib/guard/spork.rb
guard-spork-0.1.8 lib/guard/spork.rb