Copyright | © 2015-2017 Stack Builders |
---|---|
License | MIT |
Maintainer | Justin Leitgeb <justin@stackbuilders.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Core Hapistrano functions that provide basis on which all the functionality is built.
- runHapistrano :: MonadIO m => Maybe SshOptions -> (OutputDest -> String -> IO ()) -> Hapistrano a -> m (Either Int a)
- failWith :: Int -> Maybe String -> Hapistrano a
- exec :: forall a. Command a => a -> Hapistrano (Result a)
- scpFile :: Path Abs File -> Path Abs File -> Hapistrano ()
- scpDir :: Path Abs Dir -> Path Abs Dir -> Hapistrano ()
Documentation
:: MonadIO m | |
=> Maybe SshOptions | SSH options to use or |
-> (OutputDest -> String -> IO ()) | How to print messages |
-> Hapistrano a | The computation to run |
-> m (Either Int a) |
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.