Method: Puppet::FileSystem.chmod

Defined in:
lib/puppet/file_system.rb

.chmod(mode, path) ⇒ Object

Changes permission bits on the named path to the bit pattern represented by mode.

Parameters:

  • mode (Integer)

    The mode to apply to the file if it is created

  • path (String)

    The path to the file, can also accept [PathName]

Raises:

  • (Errno::ENOENT)

    : path doesn’t exist



401
402
403
# File 'lib/puppet/file_system.rb', line 401

def self.chmod(mode, path)
  @impl.chmod(mode, path)
end