# \[ANN\] Capgem 0.1 Released

**URL:** <https://www.ruby-forum.com/t/ann-capgem-0-1-released/96222>\
**Category:** Rails\
**Created:** [June 27, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/ann-capgem-0-1-released/96222 "2006-06-27T14:03:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chovy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@chovy](https://www.ruby-forum.com/u/chovy)\
**Post date:** [June 27, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/ann-capgem-0-1-released/96222/1 "2006-06-27T14:03:04Z")

</div>

I’ve put up a first release of Capgem on Rubyforge. It’s available under  
the  
MIT license.

Capgem is an extension to Capistrano which adds a pack task to  
Capistrano so  
you can package up your Rails application as a Gem. This is useful if  
you  
are in an environment where Capistrano’s remote deployment tools aren’t  
an  
option. Capgem currently adds start and stop scripts for launching your  
app  
via mongrel even if it is in the Ruby gems directory. You can just type  
sudo  
start-myapp or sudo stop-myapp from anywhere on the system to launch  
once  
you’ve installed from your Gem. You can also use ‘gem install -i  
/path/to/install yourapp.gem’ to install in a specific location.

URL: [http://rubyforge.org/projects/capgem](http://rubyforge.org/projects/capgem)

Feedback is welcome.

Sincerely,  
Anthony E.

---

<div class="post-metadata">

**Author:** ![chovy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@chovy](https://www.ruby-forum.com/u/chovy)\
**Post date:** [June 27, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/ann-capgem-0-1-released/96222/2 "2006-06-27T17:20:28Z")

</div>

On Tue, Jun 27, 2006, Anthony E. wrote:

> Capgem is an extension to Capistrano which adds a pack task to  
> Capistrano so you can package up your Rails application as a Gem. This  
> is useful if you are in an environment where Capistrano’s remote  
> deployment tools aren’t an option. Capgem currently adds start and  
> stop scripts for launching your app via mongrel even if it is in  
> the Ruby gems directory. You can just type sudo start-myapp or sudo  
> stop-myapp from anywhere on the system to launch once you’ve installed  
> from your Gem. You can also use ‘gem install -i /path/to/install  
> yourapp.gem’ to install in a specific location.

I’m curious what you mean by “…in an environment where Capistrano’s  
remote deployment tools aren’t an option.”? I’m using a custom  
deployment task to copy the code up to the server since my svn repos are  
behind a firewall. I’m curious what other instances exist where you’d  
have to bend Capistrano to do what you need.

I like the idea of being able to pack my apps up into a gem, perhaps  
that could be released separately as a rake task or something?

Is it correct to assume that when you say “start-myapp” and  
“stop-myapp”, one replaces ‘myapp’ with the name of the application?  
Otherwise, how does it handle multiple installed apps?

Thanks!  
Ben

---

<div class="post-metadata">

**Author:** ![chovy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@chovy](https://www.ruby-forum.com/u/chovy)\
**Post date:** [June 27, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/ann-capgem-0-1-released/96222/3 "2006-06-27T18:31:42Z")

</div>

> you’ve installed from your Gem. You can also use ‘gem install -i /  
> path/to/install yourapp.gem’ to install in a specific location.
> 
> URL: [http://rubyforge.org/projects/capgem](http://rubyforge.org/projects/capgem)

Sweet… I actually was able to see you demo this a few days ago,  
and this seems like a cool tool.

---

<div class="post-metadata">

**Author:** ![chovy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@chovy](https://www.ruby-forum.com/u/chovy)\
**Post date:** [June 30, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/ann-capgem-0-1-released/96222/4 "2006-06-30T19:12:04Z")

</div>

Sorry for the delayed response…this slipped by me.

In our case we work with systems which are on secure government  
networks which do not even have access to the Internet. Therefore we  
actually need to be able to burn a CD and transport the application  
code that way.

The pack task itself doesn’t actually move the code, so basically  
‘rake pack’ does exactly what you’re asking for, creating a gem from  
your rails app.

On the last point, you assume correctly - myapp will be replaced with  
your application’s name.

Sincerely,  
Anthony

On 6/27/06, Ben B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> “stop-myapp”, one replaces ‘myapp’ with the name of the application?  
> Otherwise, how does it handle multiple installed apps?
> 
> Thanks!  
> Ben
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Camber Corporation Asia-Pacific Office  
Email: removed\_email\_address@domain.invalid  
Office: 808 237-3542  
Cell: 808 782-5046
