Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created February 1, 2012 18:40
Show Gist options
  • Select an option

  • Save glarizza/1718567 to your computer and use it in GitHub Desktop.

Select an option

Save glarizza/1718567 to your computer and use it in GitHub Desktop.
Nasty Inheritance
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