Recursive Ruby Script to replace File/Directory Names & File Contents

added by DannyDouglass
2/24/2011 8:09:47 AM

113 Views

Over this past weekend I began templating a project structure that we use at my day/evening/night job to allow developers to simply execute a script and provide a few parameters to initialize a new development project (including build script, fxcop analysis, unit testing, visual studio projects, etc.). I didn’t think this would take that long despite being relatively new to the Ruby world. Oddly enough, I had trouble finding similar examples on the interwebs – even StackOverflow didn’t have the answer! The horror, the horror! No matter, I’m a developer after all and should be, better be capable of handling this simple script. I decided to start simple and just use the directory global searching method to recursively get everything within my project template’s directory:


0 comments