Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. define file_exists_notice {
  2.   $exists = exists($name)
  3.   notice "File ${name} exists: ${exists}"
  4.  
  5. }
  6. file_exists_notice  { '/etc/hosts': }
  7. file_exists_notice  { '/abc': }
  8.  
  9. notice: Scope(File_exists_notice[/etc/hosts]): File /etc/hosts exists: true
  10. notice: Scope(File_exists_notice[/abc]): File /abc exists: false