Cake AddIn that extends Cake with Putty
C# PowerShell
Permalink
Failed to load latest commit information.
src added NamespaceDoc to csproj Nov 17, 2016
.gitignore initial Jun 27, 2016
LICENSE initial Jun 27, 2016
README.md added Plink support Jun 27, 2016
ReleaseNotes.md updated documentation Nov 17, 2016

README.md

Cake.Putty

A Cake AddIn that extends Cake with Putty command tools.

cakebuild.net NuGet

Supported tools

  • PLink v1.1.0
  • Pscp v1.0.0

Including addin

Including addin in cake script is easy.

#addin "Cake.Putty"

Usage

To use the addin just add it to Cake call the aliases and configure any settings you want.

#addin "Cake.Putty"

...

Task("Pscp")
    .Does(() => 
    {
        Pscp("FILENAME", "USERNAME@YOURSERVER:FILENAME");
    });

Task("PscpSettings")
    .Does(() => 
    {
        Pscp("FILENAME", "YOURSERVER:FILENAME", new PscpSettings{ SshVersion = SshVersion.V2, User="USERNAME" });
    });

Task("Plink")
    .Does(() =>
    {
        Plink("USERNAME@YOURSERVER", "ls");
    });
Task("PlinkSettings")
    .Does(() =>
    {
        Plink("YOURSERVER", "ls", new PlinkSettings { User="USERNAME", Protocol = PlinkProtocol.Ssh, SshVersion = SshVersion.V2 });
    });

General Notes

This is an initial version and not tested thoroughly. Contributions welcome.

Tested only on Windows at this time. Ensure that Putty command line tools (pspc, plink) can be located using the PATH (e.g. check that it can be found with which pscp).

Follow @mihamarkic