bolt-modules/file/lib/puppet/functions/file/read.rb in bolt-1.49.0 vs bolt-modules/file/lib/puppet/functions/file/read.rb in bolt-2.0.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
# Read a file and return its contents.
Puppet::Functions.create_function(:'file::read', Puppet::Functions::InternalFunction) do
# @param filename Absolute path or Puppet file path.
+ # @return The file's contents.
# @example Read a file from disk
# file::read('/tmp/i_dumped_this_here')
# @example Read a file from the modulepath
# file::read('example/files/VERSION')
dispatch :read do