hapistrano-0.4.8.0: A deployment library for Haskell applications
Copyright© 2015-Present Stack Builders
LicenseMIT
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Hapistrano.Core

Description

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

Synopsis

Documentation

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

Fail returning the following status code and message.

exec Source #

Arguments

:: forall a. Command a 
=> a

Command being executed

-> Maybe Release

Release that was being attempted, if it was defined

-> Hapistrano (Result a) 

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. NOTE: the commands executed with exec will create their own pipe and will stream output there and once the command finishes its execution it will parse the result.

execWithInheritStdout Source #

Arguments

:: Command a 
=> a

Command being executed

-> Maybe Release

Release that was being attempted, if it was defined

-> Hapistrano () 

Same as exec but it streams to stdout only for _GenericCommand_s

scpFile Source #

Arguments

:: Path Abs File

Location of the file to copy

-> Path Abs File

Where to put the file on target machine

-> Maybe Release

Release that was being attempted, if it was defined

-> 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

-> Maybe Release

Release that was being attempted, if it was defined

-> Hapistrano () 

Copy a local directory recursively to target server.