Created
August 21, 2011 11:49
-
-
Save kwilczynski/1160508 to your computer and use it in GitHub Desktop.
Notice wrapper ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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