Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created November 19, 2010 23:49
Show Gist options
  • Save bodepd/707433 to your computer and use it in GitHub Desktop.
Save bodepd/707433 to your computer and use it in GitHub Desktop.
switch between inherits and includes and see the differences.
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
@bodepd
Copy link
Author

bodepd commented Nov 19, 2010

switch class b from included a to inheriting from it. the results are not so obvious!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment