# Ruby scripts for daily unix system administration

**URL:** <https://rubytalk.org/t/ruby-scripts-for-daily-unix-system-administration/4803>\
**Category:** ruby-talk\
**Created:** [19 February 2003 06:10 UTC](https://rubytalk.org/t/ruby-scripts-for-daily-unix-system-administration/4803 "2003-02-19T06:10:15Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jim\_Freeze2](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@Jim\_Freeze2](https://rubytalk.org/u/Jim_Freeze2)\
**Post date:** [19 February 2003 23:58 UTC](https://rubytalk.org/t/ruby-scripts-for-daily-unix-system-administration/4803/21 "2003-02-19T23:58:05Z")

</div>

Yes, I have thought about that numerous times, but have  
not come up with an implementation I like yet.  
Do you have some suggestions?

> **···**
>
> 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.
> 
> ## – Jim Freeze
> 
> If at first you don’t succeed, give up, no use being a damn fool.

---

<div class="post-metadata">

**Author:** ![Gavin\_Sinclair](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gavin\_Sinclair](https://rubytalk.org/u/Gavin_Sinclair)\
**Post date:** [20 February 2003 01:13 UTC](https://rubytalk.org/t/ruby-scripts-for-daily-unix-system-administration/4803/22 "2003-02-20T01:13:31Z")

</div>

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

> **···**
>
> 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?

[Previous page](https://rubytalk.org/t/ruby-scripts-for-daily-unix-system-administration/4803.md?page=1)
