lib/cronicle/client.rb in cronicle-0.1.7 vs lib/cronicle/client.rb in cronicle-0.1.8
- old
+ new
@@ -45,11 +45,12 @@
exported = export_cron(jobs_by_host.keys)
walk_hosts(jobs_by_host, exported)
end
def export_cron(host_list)
- driver = Cronicle::Driver.new(host_list, @options)
- Cronicle::Exporter.export(driver, @options)
+ run_driver(host_list) do |driver|
+ Cronicle::Exporter.export(driver, @options)
+ end
end
def walk_hosts(jobs_by_host, exported)
parallel_each(jobs_by_host) do |host, jobs_by_user|
exported_by_user = exported.delete(host) || {}