Copyright | © 2015-Present Stack Builders |
---|---|
License | MIT |
Maintainer | Juan Paucar <jpaucar@stackbuilders.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Type definitions for the Hapistrano tool.
Synopsis
- type Hapistrano a = ExceptT Failure (ReaderT Config IO) a
- data Failure = Failure Int (Maybe String)
- data Config = Config {
- configSshOptions :: !(Maybe SshOptions)
- configShellOptions :: !Shell
- configPrint :: !(OutputDest -> String -> IO ())
- data Source
- = GitRepository { }
- | LocalDirectory { }
- data Task = Task {}
- data ReleaseFormat
- data SshOptions = SshOptions {}
- data OutputDest
- data Release
- data TargetSystem
- data Shell
- mkRelease :: ReleaseFormat -> UTCTime -> Release
- releaseTime :: Release -> UTCTime
- renderRelease :: Release -> String
- parseRelease :: String -> Maybe Release
- fromMaybeReleaseFormat :: Maybe ReleaseFormat -> Maybe ReleaseFormat -> ReleaseFormat
- fromMaybeKeepReleases :: Maybe Natural -> Maybe Natural -> Natural
- toMaybePath :: Source -> Maybe (Path Abs Dir)
Documentation
Hapistrano configuration options.
Config | |
|
The source of the repository. It can be from a version control provider like GitHub or a local directory.
GitRepository | |
| |
LocalDirectory | |
|
The records describes deployment task.
Task | |
|
data ReleaseFormat Source #
Release format mode.
ReleaseShort | Standard release path following Capistrano's format |
ReleaseLong | Long release path including picoseconds |
Instances
data SshOptions Source #
SSH options.
Instances
Eq SshOptions Source # | |
Defined in System.Hapistrano.Types (==) :: SshOptions -> SshOptions -> Bool # (/=) :: SshOptions -> SshOptions -> Bool # | |
Ord SshOptions Source # | |
Defined in System.Hapistrano.Types compare :: SshOptions -> SshOptions -> Ordering # (<) :: SshOptions -> SshOptions -> Bool # (<=) :: SshOptions -> SshOptions -> Bool # (>) :: SshOptions -> SshOptions -> Bool # (>=) :: SshOptions -> SshOptions -> Bool # max :: SshOptions -> SshOptions -> SshOptions # min :: SshOptions -> SshOptions -> SshOptions # | |
Read SshOptions Source # | |
Defined in System.Hapistrano.Types readsPrec :: Int -> ReadS SshOptions # readList :: ReadS [SshOptions] # readPrec :: ReadPrec SshOptions # readListPrec :: ReadPrec [SshOptions] # | |
Show SshOptions Source # | |
Defined in System.Hapistrano.Types showsPrec :: Int -> SshOptions -> ShowS # show :: SshOptions -> String # showList :: [SshOptions] -> ShowS # |
data OutputDest Source #
Output destination.
Instances
data TargetSystem Source #
Target's system where application will be deployed
Instances
Current shells supported.
Types helpers
fromMaybeReleaseFormat :: Maybe ReleaseFormat -> Maybe ReleaseFormat -> ReleaseFormat Source #
Get release format based on the CLI and file configuration values.