Default Capfile

16 views
Skip to first unread message

David Masover

unread,
Mar 17, 2008, 8:24:00 PM3/17/08
to capis...@googlegroups.com
Default capfile looks like this, right?

load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }

So, now I'm writing some common recipes, to be distributed as plugins, or as part of a plugin. It seems to me that it makes sense to set some default value for a variable, and let config/deploy.rb override it if necessary, keeping it a nice, small config file -- but that would require that the above lines be reversed, right?

Am I missing any particular reason deploy is loaded first, and plugins second?

David Masover

unread,
Mar 17, 2008, 8:28:02 PM3/17/08
to capis...@googlegroups.com
And, on second thought -- maybe the "load 'deploy'" is loading the default deploy namespace? If so, how is config/deploy.rb loaded?

David Masover

unread,
Mar 17, 2008, 8:32:35 PM3/17/08
to capis...@googlegroups.com
Whoops, sorry for the spam...  Found it.

Default Capfile loads 'deploy', then plugins, then config/deploy.

Mine was loading something else, too.
Reply all
Reply to author
Forward
0 new messages