Conversation
There was a problem hiding this comment.
can we add a long_desc and add a md file like the other commands? The docs should explain when it's appropriate to add clean_up, aka it'll slow down the build, which is ok for one-offs.
I was thinking that instead of a clean_up flag here we'd have something like: cs-builder clean-repos --older-than 1.week, that could be run independently - say after a deploy. The goal would be that it'd be a bit more independent from any other task. This would check how old each repo is and if older than the predicate it'll be FileUtils.rm_rf-ed. That said if tthis works for you then it's ok.
There was a problem hiding this comment.
👍 yes, i was thinking about something similar, something that would be an individual cmd rather than an option of a command.
There was a problem hiding this comment.
now that we have the clean up command - do we need this anymore?
There was a problem hiding this comment.
you only really want to find the first git repo on a given path right? Here's a way of doing that: https://gist.github.com/edeustace/464c4ad6b03b3f2934d7
Running locally i get:
~/Desktop/find_repos.rb ~/.cs-builder
/home/ed/.cs-builder/repos/corespring/corespring-api/release
/home/ed/.cs-builder/repos/corespring/corespring-api/feature/AC-65-glue-in-v2-editor
...
No description provided.