Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
chmod(path, mode, config = {})
public
Changes the mode of the given file or directory.
Parameters
mode |
the file mode
|
path |
the name of the file to change mode
|
config |
give :verbose => false to not log the status.
|
Example
chmod "script/server", 0755
# File lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb, line 139
def chmod(path, mode, config = {})
return unless behavior == :invoke
path = File.expand_path(path, destination_root)
say_status :chmod, relative_to_original_destination_root(path), config.fetch(:verbose, true)
unless options[:pretend]
require "fileutils"
FileUtils.chmod_R(mode, path)
end
end