The capistrano CLI docs give a nice example of invoking a cap method
from a Capistrano::Configuration object:

require 'capistrano'
require 'capistrano/cli'
config = Capistrano::Configuration.new
config.logger_level = Capistrano::Logger::TRACE
config.set(:password) { Capistrano::CLI.password_prompt }
config.load "config/deploy"
config.update_code

What I can't figure out is how to invoke a task inside a namespace.  I
tried config.send "deploy:db:update", but that didn't work.  I also
tried

      config.namespace('deploy') do |deploy|
        deploy.namespace('db') do |db|
          db.update
        end
      end

but that didn't seem to work either (not sure if it was an unrelated
error, though). Any hints would be very much appreciated.

Thanks!
Ben

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to