lib/beaker/host/unix/file.rb in beaker-4.21.0 vs lib/beaker/host/unix/file.rb in beaker-4.22.0
- old
+ new
@@ -28,9 +28,13 @@
# @return [Beaker::Result] result of command execution
def chown(user, path, recursive=false)
execute("chown #{recursive ? '-R ' : ''}#{user} #{path}")
end
+ def chmod(mod, path, recursive=false)
+ execute("chmod #{recursive ? '-R ' : ''}#{mod} #{path}")
+ end
+
# Change group ownership of a path
#
# @see http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chgrp.html
#
# @param [String] group Group to chgrp to