Created
February 1, 2012 18:40
-
-
Save glarizza/1718567 to your computer and use it in GitHub Desktop.
Nasty Inheritance
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
| class separate { | |
| file { '/tmp/foo': | |
| ensure => file, | |
| content => 'First Level', | |
| } | |
| } | |
| class different inherits separate { | |
| File['/tmp/foo'] { | |
| content => 'different', | |
| } | |
| } | |
| class inheritance::sub inherits different { | |
| File['/tmp/foo'] { | |
| content => 'inheritance::sub', | |
| } | |
| } | |
| include inheritance::sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment