Displaying 1 result from an estimated 1 matches for "webapp_context_path".
2012 Oct 02
4
Removing intermediate variables in calculation
...a baseurl in the form of
"http://example.com/path" and I''d like it to extract the "/path" from that
variable into a separate variable IF an optional "path" variable haven''t
been supplied.
Here is an extract:
class nexus::config(
...
$baseurl,
$webapp_context_path = ''/''
) {
if ($webapp_context_path != '''')
{
$int_webapp_context_path = $webapp_context_path
notify{"using webapp_context_path \"${webapp_context_path}\"":}
}
else
{
$extracted_url_path = regsubst($baseurl, ''^http...