have one of my co-workers getting ready to test deploy so I am trying to create
a deploy.rb and I'm confused.
cwhite@nxpc:~/ttiassessments$ bundle exec cap -T
cap invoke # Invoke a single command on the remote servers.
cap shell # Begin an interactive Capistrano session.
Extended help may be available for these tasks.
Type `cap -e taskname' to view it.
I was thinking that multistage:prepare should be an option here so I copied
'Capfile' from another project...
$ cat Capfile
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
and now 'cap -T' looks more like I would expect but I get an error...
$ cap multistage:prepare
* executing `multistage:prepare'
/usr/local/lib/ruby/gems/1.8/gems/capistrano-ext-1.2.1/lib/capistrano/ext/multistage.rb:35:
uninitialized constant FileUtils (NameError)
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in
`instance_eval'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in
`invoke_task_directly_without_callbacks'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in
`invoke_task_directly'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in
`execute_task'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:101:in
`find_and_execute_task'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:46:in
`execute_requested_actions_without_help'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in
`each'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in
`execute_requested_actions_without_help'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/cli/help.rb:19:in
`execute_requested_actions'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:34:in
`execute!'
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:14:in
`execute'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.9.0/bin/cap:4
from /usr/local/bin/cap:19:in `load'
from /usr/local/bin/cap:19
I've run a bunch of different sites with capistrano deploy scripts from this
system - some multistage, some single stage and never had an issue. Why am I
struggling with this one?
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [email protected]
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
Need help communicating between generations at work to achieve your desired
success? Let us help!
--
* 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