lib/guard/resque.rb in guard-resque-0.0.2 vs lib/guard/resque.rb in guard-resque-0.0.3

- old
+ new

@@ -6,10 +6,11 @@ # Allowable options are: # :environment e.g. 'test' # :task .e.g 'resque:work' # :queue e.g. '*' + # :count e.g. 3 # :verbose e.g. true # :trace e.g. true # :stop_signal e.g. KILL def initialize(watchers = [], options = {}) @options = options @@ -67,9 +68,12 @@ # environment setting command << "RAILS_ENV=#{@options[:environment]} " if @options[:environment] # queue setting command << "QUEUE=#{@options[:queue] || '*'} " + + #count setting + command << "COUNT=#{@options[:count] || '1'} " # verbose setting command << "VVERBOSE=1 " if @options[:verbose] # task setting