Sha256: 2eed969ad6d6d33d61a6c02c346bc69fc56d769b47d1fb78119b1031962f2948
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
# # file_exists.rb # module Puppet::Parser::Functions newfunction(:file_exists, :type => :rvalue, :doc => <<-EOS Returns an boolean value if a given file and/or directory exists on Puppet Master. EOS ) do |args| value = nil CORL.run do raise(Puppet::ParseError, "file_exists(): Must have a file or directory name specified; " + "given (#{args.size} for 1)") if args.size < 1 value = CORL::Data::Disk.exists?(args[0]) end return value end end
Version data entries
6 entries across 6 versions & 1 rubygems