Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created August 21, 2011 11:49
Show Gist options
  • Save kwilczynski/1160508 to your computer and use it in GitHub Desktop.
Save kwilczynski/1160508 to your computer and use it in GitHub Desktop.
Notice wrapper ...
define file_exists_notice {
$exists = exists($name)
notice "File ${name} exists: ${exists}"
}
file_exists_notice { '/etc/hosts': }
file_exists_notice { '/abc': }
notice: Scope(File_exists_notice[/etc/hosts]): File /etc/hosts exists: true
notice: Scope(File_exists_notice[/abc]): File /abc exists: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment