lib/dtr/raketasks.rb in dtr-0.0.3 vs lib/dtr/raketasks.rb in dtr-0.0.4
- old
+ new
@@ -58,9 +58,10 @@
defined?(@start_server) ? @start_server : true
end
private
def start_runners
+ return if self.processes.to_i <= 0
runner_names = []
self.processes.to_i.times {|i| runner_names << "runner#{i}"}
%x[dtr -r #{runner_names.join(',')} -D #{runner_options}]
end
end