From: Gavin Sinclair Date: 2003-02-20T10:13:31+09:00 Subject: Re: Ruby scripts for daily unix system administration On Thursday, February 20, 2003, 10:58:05 AM, Jim wrote: > On Thursday, 20 February 2003 at 8:02:27 +0900, Dave Thomas wrote: >> >> On Wednesday, Feb 19, 2003, at 15:11 US/Central, Jim Freeze wrote: >> >> > Below is a boilerplate that I use for my apps: >> > >> Jim: >> >> Seems like you could put a boatload of this functionality into a common >> base class that all your apps could share. > Yes, I have thought about that numerous times, but have > not come up with an implementation I like yet. > Do you have some suggestions? Probably a BoilerPlate module that contained #version, parts of #initialize, and #get_options. The target class would provide VERSION, REVISION_DATE and AUTHOR, #usage, and an #options method that #get_options can call (returns an array for GetoptLong to use). Anyway, I've put your code on the wiki at BoilerPlate. I'm sure many will find it useful. Gavin