Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Last active August 29, 2015 14:16
Show Gist options
  • Save ripienaar/cbb78e791b72df181991 to your computer and use it in GitHub Desktop.
Save ripienaar/cbb78e791b72df181991 to your computer and use it in GitHub Desktop.
class one {
$x = 1
two{"x": }
}
define two {
notice("notice: '${x}'")
notice(inline_template("inline template: '<%= @x %>'"))
}
include one
Notice: Scope(Two[x]): notice: ''
Notice: Scope(Two[x]): inline template: '1'
Notice: Compiled catalog for devco.net in environment production in 0.12 seconds
Notice: Finished catalog run in 0.02 seconds
$ puppet apply test.pp --parser=future
Notice: Scope(Two[x]): notice: ''
Notice: Scope(Two[x]): inline template: ''
Notice: Compiled catalog for devco.net in environment production in 0.83 seconds
Notice: Finished catalog run in 0.02 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment