Rename Remote::FS#{has_,}file?

This commit is contained in:
Thibault Jouan
2014-01-08 22:30:52 +00:00
parent 19b091a15c
commit 103b9d1230
4 changed files with 8 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ module Producer
@sftp ||= @remote.session.sftp.connect
end
def has_file?(path)
def file?(path)
sftp.stat!(path).file?
rescue Net::SFTP::StatusException
false

View File

@@ -3,7 +3,7 @@ module Producer
module Tests
class HasFile < Test
def verify
env.remote.fs.has_file? arguments.first
env.remote.fs.file? arguments.first
end
end
end