lib/puppet/file_serving/content.rb
# Read the content of our file in.
Read the content of our file in.
Read the content of our file in .
def content
    unless @content
      raise(ArgumentError, "Cannot read the contents of links unless following links") if stat.ftype == "symlink"
      @content = IO.binread(full_path)
    end
    @content
  end
def content unless @content raise ( ArgumentError , "Cannot read the contents of links unless following links" ) if stat . ftype == "symlink" @content = IO . binread ( full_path ) end @content end
Read the content of our file in.
Read the content of our file in .
# This stat can raise an exception, too.