Plugin get_server_filename
In: /vagrant/modules/undine_apache/lib/puppet/parser/functions/get_server_filename.rb

Function: get_server_filename

A helper function used by Undine to translate a valid ServerName in an httpd VirtualHost entry to a filename, with ’.’ replaced with ’-’.

Parameters

server_name
The ServerName to translate into a filename.

Returns

A filename to use for the given ServerName, returned as a string.

Examples

Translates "my.localhost.test" to "my-localhost-test"

  $name = get_project_name('my.localhost.test')

Type

function

[Validate]