At 08:02 -0600 6/12/08, Jamis Buck wrote:
> You can do:
>
> require 'capistrano/configuration'
You may need to do this first:
require 'rubygems'
That said, this is a dandy API. It appears that Capistrano's
load method can be run as many times as needed, using a
variety of interfaces:
# From .../gems/capistrano-2.3.0/lib/
# capistrano/configuration/loading.rb
...
# Load a configuration file or string into this configuration.
#
# Usage:
#
# load("recipe"):
# Look for and load the contents of 'recipe.rb' into this
# configuration.
#
# load(:file => "recipe"):
# same as above
#
# load(:string => "set :scm, :subversion"):
# Load the given string as a configuration specification.
#
# load { ... }
# Load the block in the context of the configuration.
I have some example code up at:
http://cfcl.com/twiki/bin/view/Projects/Arti/Patterns/Capistrano_H2
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume [EMAIL PROTECTED]
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---