Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method 'list' ? #17

Open
JimmyRittenborg opened this issue Jun 8, 2012 · 2 comments
Open

Undefined method 'list' ? #17

JimmyRittenborg opened this issue Jun 8, 2012 · 2 comments

Comments

@JimmyRittenborg
Copy link

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
Copy link
Author

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.

@mkubenka
Copy link
Contributor

change line 293 from:

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

to

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants