Valentia is PowerShell deployment tool for Server-Client model. This module set will optimize your work for deploy Commands or files to remote servers.
Let's start install valentia.
You have 2 choice to install valentia.
1. Install through NuGet.
Open Visual Studio and run below in package manager.
Install-Package valentia
This will set package content and also copy valentia to module folder.
powershell -NoProfile -ExecutionPolicy unrestricted -Command 'iex ([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String((irm "https://api.github.com/repos/guitarrapc/valentia/contents/valentia/Tools/RemoteInstall.ps1").Content))).Remove(0,1)' |
After the installation complete, you will find valentia installed into your current user's Module folder.
$env:USERPROFILE\Documents\WindowsPowerShell\Modules\valentia
While valentia sat in standard Module Path, you don't need to import manually. valentia will automatically loaded into PowerShell session.
If you want to import, just type following in PowerShell.
Import-Module valentia
Valentia inspired from capistrano and psake. They are fantastic and awesome tools for automation and DevOps. Especially psake showed cool way of coding and valentia followed in many points. Also psasync and Get-NetworkInfo give me inspire to do asynchronous execution.