Hi,
I'm trying to share capistrano recipes between multiple applications.
The web told me to use a shared gem for this but it seems as if I'm
running into some loading issue.

The gem is structures as:
(+ test-plugins)
   + deployment
      + lib
         + deployment
             + tasks
                 + base.rb

base.rb contains my old deploy.rb file (enclosed within
"Capistrano::Configuration.instance(:must_exist).load do ..  end").

Within the Gemfile I've added "gem 'deployment', :path => 'test-
plugins/deployment', :require => 'deployment'". Within the rails
console I can check that the gem is loaded. Also "bundle update" says
that this gem is build correctly.

What I wanted to do now is to just require the task within my config/
deploy.rb via "require deployment/tasks/base". But to no avail, this
creates an "no such file to load -- deployment/tasks/base (LoadError)"
error. To make it easier I just wanted to load the module through
"require 'deployment'" but this also doesn't work. This makes me
believe that the bundled gem files are somehow not used.

My simple workaround would be to include a "require deployment" within
the Capfile before loading config/deploy.rb but this also won't work
as it only searches for system wide gems -- as I'm using bundler and
rvm this would also fail.

So how to best shared capistrano recipes? Somehow I wasn't able to
make this work -- I'd thought that standard rails3/bundler/rvm/
capistrano should be quite easy so I believe I'm missing something
very basic..

cheers and thanks in advance, Andreas Happe

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to