module Thor::Actions

def chmod(path, mode, config={})


chmod "script/*", 0755

==== Example

config:: give :verbose => false to not log the status.
path:: the name of the file to change mode
mode:: the file mode
==== Parameters

Changes the mode of the given file or directory.
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)
  FileUtils.chmod_R(mode, path) unless options[:pretend]
end