Copyright | © 2015-Present Stack Builders |
---|---|
License | MIT |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Core Hapistrano functions that provide basis on which all the functionality is built.
Synopsis
- failWith :: Int -> Maybe String -> Maybe Release -> Hapistrano a
- exec :: forall a. Command a => a -> Maybe Release -> Hapistrano (Result a)
- execWithInheritStdout :: Command a => a -> Maybe Release -> Hapistrano ()
- scpFile :: Path Abs File -> Path Abs File -> Maybe Release -> Hapistrano ()
- scpDir :: Path Abs Dir -> Path Abs Dir -> Maybe Release -> Hapistrano ()
Documentation
failWith :: Int -> Maybe String -> Maybe Release -> Hapistrano a Source #
Fail returning the following status code and message.
:: 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 #
:: 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