hapistrano-0.3.1.0: A deployment library for Haskell applications

Copyright© 2015-2017 Stack Builders
LicenseMIT
MaintainerJustin Leitgeb <justin@stackbuilders.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

System.Hapistrano.Core

Description

Core Hapistrano functions that provide basis on which all the functionality is built.

Synopsis

Documentation

runHapistrano Source #

Arguments

:: MonadIO m 
=> Maybe SshOptions

SSH options to use or Nothing if we run locally

-> (OutputDest -> String -> IO ())

How to print messages

-> Hapistrano a

The computation to run

-> m (Either Int a)

Status code in Left on failure, result in Right on success

Run the Hapistrano monad. The monad hosts exec actions.

failWith :: Int -> Maybe String -> Hapistrano a Source #

Fail returning the following status code and message.

exec :: forall a. Command a => a -> Hapistrano (Result a) Source #

Run the given sequence of command. Whether to use SSH or not is determined from settings contained in the Hapistrano monad configuration. Commands that return non-zero exit codes will result in short-cutting of execution.

scpFile Source #

Arguments

:: Path Abs File

Location of the file to copy

-> Path Abs File

Where to put the file on target machine

-> Hapistrano () 

Copy a file from local path to target server.

scpDir Source #

Arguments

:: Path Abs Dir

Location of the directory to copy

-> Path Abs Dir

Where to put the dir on target machine

-> Hapistrano () 

Copy a local directory recursively to target server.