method

chmod

v1_9_1_378 - Show latest stable - Class: FileUtils
chmod(mode, list, options = {})
private

Options: noop verbose

Changes permission bits on the named files (in list) to the bit pattern represented by mode.

FileUtils.chmod 0755, 'somecommand'
FileUtils.chmod 0644, %w(my.rb your.rb his.rb her.rb)
FileUtils.chmod 0755, '/usr/bin/ruby', :verbose => true