acceptance/lib/puppet/acceptance/temp_file_utils.rb
# Create a file on the host.
# Parameters:
# [host] the host to create the file on
# [file_path] the path to the file to be created
# [file_content] a string containing the contents to be written to the file
# [options] a hash containing additional behavior options.  Currently supported:
# * :mkdirs (default false) if true, attempt to create the parent directories on the remote host before writing
#       the file
# * :owner (default 'root') the username of the user that the file should be owned by
# * :group (default 'puppet') the name of the group that the file should be owned by
# * :mode (default '644') the mode (file permissions) that the file should be created with
Create a file on the host.
Parameters:
[host] the host to create the file on
[file_path] the path to the file to be created
[file_content] a string containing the contents to be written to the file
[options] a hash containing additional behavior options.
Create a file on the host . Parameters : [ host ] the host to create the file on [ file_path ] the path to the file to be created [ file_content ] a string containing the contents to be written to the file [ options ] a hash containing additional behavior options .
def tmpdir(host, basename)
        host_tmpdir = host.tmpdir(basename)
        chmod(host, "755", host_tmpdir)
        host_tmpdir
      end
def tmpdir ( host , basename ) host_tmpdir = host . tmpdir ( basename ) chmod ( host , "755" , host_tmpdir ) host_tmpdir end
Create a file on the host.
Create a file on the host .
# we need to make sure that the puppet user can traverse this directory...
host
<not_specific>
basename
<not_specific>