Skip to content

Commit aeead90

Browse files
committed
chown and chmod support a variable number of files
1 parent 3cbfc11 commit aeead90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/aikido/zen/sinks/file.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ def join(*)
4848
joined
4949
end
5050

51-
def chmod(mode, path)
52-
Extensions.scan_path(path, "chmod")
51+
def chmod(mode, *paths)
52+
paths.each { |path| Extensions.scan_path(path, "chmod") }
5353
super
5454
end
5555

56-
def chown(user, group, path)
57-
Extensions.scan_path(path, "chown")
56+
def chown(user, group, *paths)
57+
paths.each { |path| Extensions.scan_path(path, "chown") }
5858
super
5959
end
6060

0 commit comments

Comments
 (0)