lib/scripterator.rb in scripterator-0.1.1 vs lib/scripterator.rb in scripterator-1.0.0
- old
+ new
@@ -16,9 +16,10 @@
def run(description, &block)
options = {}.tap do |o|
o[:start_id] = ENV['START'].try(:to_i)
o[:end_id] = ENV['END'].try(:to_i)
+ o[:id_list] = ENV['ID_LIST'].try(:split, ',')
o[:redis_expiration] = ENV['REDIS_EXPIRATION'].try(:to_i) || config.redis_expiration
end
Runner.new(description, &block).run(options)
end