Capistrano loading error with invalid argument error?

I run

upload('bin/rvm_install.sh','~/rvm_install.sh') 

in my deployment of Capistrano script. And he spits out the following error:

 capistrano-2.14.2/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task': wrong number of arguments (2 for 0) (ArgumentError) 

Why is this happening?

+4
source share
1 answer

The change

 upload('bin/rvm_install.sh','~/rvm_install.sh') 

to

 top.upload('bin/rvm_install.sh','~/rvm_install.sh') 

solved my problem.

+17
source

Source: https://habr.com/ru/post/1468940/


All Articles