# Modular scripts

**URL:** <https://www.ruby-forum.com/t/modular-scripts/88445>\
**Category:** Rails\
**Created:** [March 11, 2007, 6:46am UTC](https://www.ruby-forum.com/t/modular-scripts/88445 "2007-03-11T06:46:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_loper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a8b319/32.png) [@chris\_loper](https://www.ruby-forum.com/u/chris_loper)\
**Post date:** [March 11, 2007, 6:46am UTC](https://www.ruby-forum.com/t/modular-scripts/88445/1 "2007-03-11T06:46:57Z")

</div>

Not sure how to really phrase the question so I will explain what I  
am doing:

I need to allow users to perform some “system” commands, that is,  
Rails will execute these commands. In order to parse the return data  
and display it in a certain way, I need to store each of the allowed  
“commands” in its own script. Where should these scripts go? Should  
it be a module? Should it open the directory and read in all module  
files? How would I get the class name? etc.

I’ve never done this before so I’m just needing some direction on this.

Thanks.
