-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutil.ps1
More file actions
33 lines (25 loc) · 744 Bytes
/
util.ps1
File metadata and controls
33 lines (25 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Generic utilities
#
# @author Christopher Klein <christopher[dot]klein[at]neos-it[dot]de>
# Load given configuration file
function Load-Configuration() {
Param(
[parameter(Mandatory=$True, HelpMessage="Absolute path to configuration file")]
[string]
$absolutePath
)
if (!(Test-Path $absolutePath)) {
Write-Error "Configuration file $($absolutePath) does not exist. Maybe you have forget to copy the template configuration?"
exit
}
$directory = Split-Path -Path $absolutePath
$configFile = Split-Path -Path $absolutePath -Leaf
$config = Import-LocalizedData -BaseDirectory $directory -FileName $configFile
return $config
}
function Notify-Start($log) {
}
function Notify($log) {
}
function Notify-End($log) {
}