handsy-0.0.10: A DSL to describe common shell operations and interpeters for running them locally and remotely.

Safe HaskellNone
LanguageHaskell2010

System.Handsy.Remote

Contents

Synopsis

Documentation

runRemote :: Options -> Host -> SSHOptions -> Handsy a -> IO a Source

Executes the actions at a remote host

Options

data SSHOptions Source

Constructors

SSHOptions 

Fields

sshPath :: FilePath

Path of ssh command

sshPort :: Int

Port to connect

controlMaster :: Bool

Whether to use control master for SSH connections. This significantly reduces execution time.

Instances

Helpers

pushFile Source

Arguments

:: FilePath

Local path of source

-> FilePath

Remote path of destination

-> Handsy () 

Copies a local file to remote host

pullFile Source

Arguments

:: FilePath

Remote path of source

-> FilePath

Local path of destination

-> Handsy () 

Fetches a file from remote host

Re-exports

def :: Default a => a

The default value for this type.