Created
November 19, 2010 23:49
-
-
Save bodepd/707433 to your computer and use it in GitHub Desktop.
switch between inherits and includes and see the differences.
This file contains 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 a { | |
Notify { | |
message => 'a', | |
} | |
exec {'/bin/echo a': | |
logoutput => true, | |
} | |
} | |
class b { #inherits a{ | |
include a | |
Exec{ command => '/bin/echo b'} | |
notify { 'b': | |
#ensure => file, | |
#content => 'blah', | |
} | |
} | |
include b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
switch class b from included a to inheriting from it. the results are not so obvious!