Skip to content

Instantly share code, notes, and snippets.

@discreet
Created September 23, 2016 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save discreet/b98ce491524a380bf299a41178d59da5 to your computer and use it in GitHub Desktop.
Save discreet/b98ce491524a380bf299a41178d59da5 to your computer and use it in GitHub Desktop.
Advanced logic for server type config
class foo {
$stype = $::tier
if !defined("::foo::${stype}") {
fail("The server type of ${::tier} is invalid")
}
include "::foo::${stype}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment