Accept mode as argument in `mkdir' action

This commit is contained in:
Thibault Jouan committed 2014-04-25 00:33:27 +00:00
1 parent 5cb6296057
commit 94f6bbb4aa
6 files changed
+68 -7

No files matched your search

+3 -2
View File
@@ -20,8 +20,9 @@ module Producer
false
end
def mkdir(path)
sftp.mkdir! path
def mkdir(path, mode = nil)
options = mode ? { permissions: mode } : {}
sftp.mkdir! path, options
end
def file_read(path)