welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

`block in push_exclude_paths': undefined method `match?' for "wp-content":String (NoMethodError) #538

Closed CaptainPirateFace closed 4 years ago

CaptainPirateFace commented 5 years ago

When pushing -u -t -p -l --all etc, all give the following:

▬▬ Pushing Languages ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ /Users/giusycammarano/.rvm/gems/ruby-2.4.2/gems/wordmove-4.0.1/lib/wordmove/deployer/ssh.rb:133:inblock in push_exclude_paths': undefined method match?' for "wp-content":String (NoMethodError) Did you mean? match from /Applications/MAMP/Library/lib/ruby/2.3.0/pathname.rb:327:inascend' from /Users/giusycammarano/.rvm/gems/ruby-2.4.2/gems/wordmove-4.0.1/lib/wordmove/deployer/ssh.rb:131:in each_with_object' from /Users/giusycammarano/.rvm/gems/ruby-2.4.2/gems/wordmove-4.0.1/lib/wordmove/deployer/ssh.rb:131:inpush_exclude_paths'`

-w -d seem to work fine.

Running MAMP, and connecting with ssh.

We've explored just about every option online - can you please suggest a solution.

Many thanks,

alessandro-fazzi commented 5 years ago

I cannot get what's exactly happening in you environment, but the problem seems to be that you're calling mixed ruby versions:

I really have no idea why a ruby version is inside MAMP and in your $PATH and why calls to mixed interpreters happen. You should be able to unload /Applications/MAMP/Library/lib/ruby/ from your path and that should do the trick; but I have no idea at all about how MAMP works.

alessandro-fazzi commented 4 years ago

Stalled thus closing