# Radiant as a Gem

**URL:** <https://www.ruby-forum.com/t/radiant-as-a-gem/63890>\
**Category:** Radiant CMS\
**Created:** [June 20, 2006, 11:17am UTC](https://www.ruby-forum.com/t/radiant-as-a-gem/63890 "2006-06-20T11:17:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [June 20, 2006, 11:17am UTC](https://www.ruby-forum.com/t/radiant-as-a-gem/63890/1 "2006-06-20T11:17:43Z")

</div>

I spent some time this evening working through most of what we will need  
to distribute Radiant as a gem. The following patch creates a `radiant`  
command which is very similar to the `rails` command.

[http://dev.radiantcms.org/radiant/attachment/ticket/16/radiant\_command.diff](http://dev.radiantcms.org/radiant/attachment/ticket/16/radiant_command.diff)

Typing:

radiant .

Will create an Radiant application which will run in “instance” mode in  
the current directory.

Typing:

radaint -t app .

Will create a fully extracted Radiant application which will run in  
“application” mode. The difference between “instance” mode and  
“application” mode is that “instance” mode creates the application with  
a minimal number of files that depends on another Radiant application.  
This will be very useful when Radiant is distributed as a gem because  
you will be able to have the code base installed once, and multiple  
sites that reference that same code base as instances.

If you can, please apply the patch and give it a go. I’m still pushing  
to release the first version of Radiant this week. So any feedback you  
can give on this feature would be much appreciated.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
