lib/ruote/log/fs_history.rb in ruote-2.1.3 vs lib/ruote/log/fs_history.rb in ruote-2.1.4
- old
+ new
@@ -65,13 +65,12 @@
def shutdown
@file.close rescue nil
end
- # Returns an array of Ruote::Record instances, each record represents
- # a ruote engine [history] event.
- # Returns an empty array if no history was found for the given wfid.
+ # Returns the messages concerning the process given by its wfid,
+ # or an empty array if there were no such process seen.
#
def by_process (wfid)
files = Dir[File.join(@path, '*.json')].sort.reverse
@@ -116,11 +115,11 @@
end
a
end
end
- # Returns an array of Record instances for a given date, and any process
- # instance.
+ # Returns an array of messages for a given day or an empty array if nothing
+ # happened at that date.
#
def by_date (date)
date = Time.parse(date.to_s).strftime('%F')