[ 
https://issues.apache.org/jira/browse/WHIMSY-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969128#comment-14969128
 ] 

Sebb commented on WHIMSY-25:
----------------------------

Seems good to me; I agree that it's probably not necessary to check individual 
module times.

I wonder if it would be worth adding a common function to do the time check. 
I.e. the script passes the name of a file, and the function returns whether or 
not it is up to date?

> Gem modules could return their file dependencies/last updated status
> --------------------------------------------------------------------
>
>                 Key: WHIMSY-25
>                 URL: https://issues.apache.org/jira/browse/WHIMSY-25
>             Project: Whimsy
>          Issue Type: New Feature
>            Reporter: Sebb
>
> The Gem modules give access to various files.
> These are then used by scripts that may create summaries of the output.
> For example public_icla_info.rb uses asf/icla.rb
> These scripts may check that the underlying source has not changed since the 
> last output file was created; this means that the script needs to know the 
> name(s) of the files that the Gem module used. Rather than repeat the file 
> name in the script, it would be handy if the Gem module had a method to 
> return the file name(s). 
> Alternatively the Gem module could have a method to check a timestamp against 
> its source(s) - this would mean that the Gem could use LDAP or SVN to access 
> its source without affecting the calling script.
> Or indeed the Gem could return the timestamp of its source (the most recent 
> if there is more than one)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to