Aupajo / hubot-script-catalog

Lists currently available scripts for your Hubot.
http://hubot-script-catalog.herokuapp.com/
MIT License
13 stars 8 forks source link

Doesn't remove deleted scripts #6

Open twe4ked opened 10 years ago

twe4ked commented 10 years ago

For instance google-reader.coffee been removed from the hubot-scripts repo but it hasn't been removed from the catalog.

Aupajo commented 10 years ago

Thanks! I've just flushed the old scripts and regenerated the index.

There's a rake task to flush the scripts (rake flush), and a rake task to generate the index (rake catalog). It would be simple enough to chain the two together, so that scripts are always flushed before the index is updated, but this would introduce a period of maybe 20 seconds where the list would be in various stages of completeness, as that's how long it takes to add all the scripts.

The problem stems from the fact this is essentially a set of big procedural rake tasks. It really just needs to be restructured in a nicer, more OO-way. I'll leave this issue open until it's fixed properly.

twe4ked commented 10 years ago

Cool, just thought I would mention it. Very useful site BTW, thanks. :)