Split is a string method not an Array method in 1.9.3 nor ruby 2.0

How are you setting the branch to be deployed?

How are you setting the repo for git?

What version of git are you running locally?

> On Nov 29, 2013, at 1:24 PM, byrnejb <[email protected]> wrote:
> 
> Arch = i86_64
> OS = CentOS-6.4 (RHEL6)
> Ruby = v.2.0.0.p353
> Rails = 4.0.1
> Capistrano 2.15.5
> 
> We are trying to deploy a complex recipe which was last used this past 
> January and worked then without error. At that time we were using Ruby-1.9.3 
> and RoR-3.2.8.  We have updated our application to Ruby-2. and RoR-4.0.1 and 
> have installed Ruby-2.0.0 on the deployment target.  When we do a --dry-run 
> of the deployment we are getting this error:
> 
>     from 
> /usr/lib64/ruby/gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy/scm/git.rb:230:in
>  `query_revision': undefined method `split' for #<Array:0x000000013cf068> 
> (NoMethodError)
> .  .  .
> 
> See https://gist.github.com/anonymous/7712107
> 
> It appears to me that this may be related to the empty array at 
> variables.rb:95:
> .  .  .
>     from 
> /usr/lib64/ruby/gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:110:in
>  `synchronize'
>     from 
> /usr/lib64/ruby/gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:110:in
>  `protect'
>     from 
> /usr/lib64/ruby/gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:78:in
>  `fetch'
>     from 
> /usr/lib64/ruby/gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:95:in
>  `[]'
>     from 
> /usr/lib64/ruby/gems/2.0.0/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy/strategy/base.rb:86:in
>  `revision'
> 
> Does anyone have any suggestions as to where I should look?  Does this look 
> like a configuration error in deploy.rb?
> 
> This recipe is very, very customized and quite large.  Undertaking a complete 
> rewrite to get it to work with Capistrano 3 is not in the budget.
> -- 
> -- 
> * 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
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
* 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
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to