public
Description: Database and shared asset synchronization, multiple deployable environments, geminstaller dependency type, logfile helpers
Home | Edit | New

Code Extensions

Capistrano Code Extensions

The following items are extensions to the capistrano code base. Also, check out Recipes and Properties.

new RemoteDependency type :gemfile

depend(:remote, :gemfile, “config/geminstaller.yml”) Aliases the depend method (with depend_without_gemfile). Proxies all calls with :type != :gemfile to the aliased method. When :type == :gemfile, the gems file is parsed (using geminstaller codebase) to iteratively call depend_without_gemfile with each gem found in the YAML file. This is still really only suitable for single-server deployments. The idea would be to add new options to the geminstaller.yml config syntax that would allow us to reference specific capistrano roles for a given gem. For instance, the database server won’t need all of our rails gems. A separate ferret server may require it’s own set of gems, etc.
Last edited by jtrupiano, Thu Sep 11 09:56:02 -0700 2008
Home | Edit | New
Versions: