Created
January 8, 2013 19:51
-
-
Save kbarber/4487300 to your computer and use it in GitHub Desktop.
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
| # ./bin/puppet apply -e '$foo = undef notice(inline_template("<%= foo.inspect %>"))' | |
| /Users/ken/Development/puppet/lib/puppet/defaults.rb:127: warning: Insecure world writable dir /usr/local/share in PATH, mode 040777 | |
| Notice: Scope(Class[main]): :undef | |
| Notice: Finished catalog run in 0.12 seconds |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cat ~/.puppet/modules/foo/lib/puppet/parser/functions/foo.rb
module Puppet::Parser::Functions
newfunction(:foo, :type => :statement) do |arguments|
puts arguments[0].inspect
end
end
~/Development/puppet/bin/puppet apply -e 'foo(undef)'
""