git-deploy icon indicating copy to clipboard operation
git-deploy copied to clipboard

Undefined method 'list' ?

Open JimmyRittenborg opened this issue 13 years ago • 2 comments

after lots of struggling with the deploy.yml I'm now getting this: /usr/local/bin/git-deploy:285:in dir_empty?': undefined methodlist' for nil:NilClass (NoMethodError)

Regular FTP is working though (:

JimmyRittenborg avatar Jun 08 '12 14:06 JimmyRittenborg

Nothing is working for me here (..nothing but the FTP, but the SFTP might be faster in only one continues connection for the entire transfer, right?), the .yml dosen't get read properly, and when reformatting it to the one liner that works, but then it throws the error above, at me.

I also tried with different versions of Ruby through RVM - but well, I'm a freakin' noob at this crap. I just wanted to get off FTP and into Git deployment.

JimmyRittenborg avatar Jun 09 '12 02:06 JimmyRittenborg

change line 293 from:

@sftp.list('*').empty?

to

@sftp.dir.glob("#{@path}", "*").empty?

mkubenka avatar Sep 20 '12 08:09 mkubenka