Class: Guard::Spork::SporkWindowsInstance

Inherits:
SporkInstance show all
Defined in:
lib/guard/spork/spork_windows_instance.rb

Instance Attribute Summary

Attributes inherited from SporkInstance

#env, #options, #pid, #port, #process, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SporkInstance

#alive?, #initialize, #start, #to_s

Constructor Details

This class inherits a constructor from Guard::Spork::SporkInstance

Class Method Details

.spork_pids ⇒ Object



19
20
21
# File 'lib/guard/spork/spork_windows_instance.rb', line 19

def self.spork_pids
  spork_processes.map { |process| process[:pid] }
end

Instance Method Details

#command ⇒ Object



7
8
9
# File 'lib/guard/spork/spork_windows_instance.rb', line 7

def command
  ["cmd", "/C"] + super
end

#running? ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/guard/spork/spork_windows_instance.rb', line 15

def running?
  super && drb_ready?
end

#stop ⇒ Object



11
12
13
# File 'lib/guard/spork/spork_windows_instance.rb', line 11

def stop
  kill_all_spork_processes
end