forked from murati-hu/CloudRemoting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCloudRemoting.psm1
More file actions
19 lines (17 loc) · 875 Bytes
/
CloudRemoting.psm1
File metadata and controls
19 lines (17 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Write-Verbose "CloudRemoting module"
if (Get-Module AWS.Tools.Common -ListAvailable) {
Import-Module AWS.Tools.Common
} elseif (Get-Module AWSPowerShell.NetCore -ListAvailable) {
Import-Module AWSPowerShell.NetCore
} elseif (Get-Module AWSPowershell -ListAvailable) {
Import-Module AWSPowershell
} else {
Write-Warning "AWS.Tools, AWSPowershell or AWSPowerShell.NetCore is not found, but some of the cmdlets requires it."
Write-Warning "Please make sure you have installed it for proper functioning."
Write-Warning "You can install it by 'PowerShellGet\Install-Module AWSPowershell -Scope CurrentUser' or by 'https://s3.amazonaws.com/aws-cli/AWSCLI64.msi'"
}
$functionFilter = Join-Path $PSScriptRoot "Functions\*.ps1"
Get-ChildItem -Path $functionFilter -Recurse | Foreach-Object {
Write-Verbose "Loading file $($_.Name).."
. $_.FullName
}