Last active
May 29, 2020 18:31
-
-
Save binford2k/7cd040efb1bfe047d588156efbfe802d to your computer and use it in GitHub Desktop.
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
<% | | |
Optional[String] $es_protocol = undef, | |
Integer $es_major_version = 0 | |
| -%> | |
<% if $es_protocol { | |
$_es_protocol = $es_protocol | |
} | |
else { | |
$_es_protocol = $es_major_version ? { | |
5 => 'https', | |
default => 'http' | |
} | |
} | |
%> | |
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
<% | | |
Integer $es_major_version = 0, | |
Optional[String] $es_protocol = $es_major_version ? { 5 => 'https', default => 'http' }, | |
| -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment