lib/eco-rake/lib/people/sync_launch.rb in eco-rake-0.2.6 vs lib/eco-rake/lib/people/sync_launch.rb in eco-rake-0.2.7
- old
+ new
@@ -29,10 +29,11 @@
option_forwarding(**FORWARD_RULES)
def task(*_args)
return missing_files_notify unless latest_file
return process_deltas if delta?
+
process_full_file if full? || delta_last?
end
private
@@ -51,11 +52,12 @@
File.delete(file)
end
end
def missing_files_notify
- msg = "Missing files to be processed"
+ msg = 'Missing files to be processed'
puts msg
+
exit 1 if options[:simulate]
exit 1 if options[:no_email]
exit 1 unless (inbox = mail_to)
email_missing_files(enviro: target_enviro, to: inbox)