lib/bluepill/condition_watch.rb in bluepill-0.0.2 vs lib/bluepill/condition_watch.rb in bluepill-0.0.3

- old
+ new

@@ -5,10 +5,10 @@ @name = name @logger = options.delete(:logger) @fires = options.has_key?(:fires) ? [options.delete(:fires)].flatten : [:restart] @every = options.delete(:every) - @times = options.delete(:times) || [1,1] + @times = options[:times] || [1,1] @times = [@times, @times] unless @times.is_a?(Array) # handles :times => 5 self.clear_history! @process_condition = ProcessConditions.name_to_class(@name).new(options) \ No newline at end of file