hapistrano-0.3.2.2: A deployment library for Haskell applications

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

System.Hapistrano.Types

Description

Type definitions for the Hapistrano tool.

Synopsis

Documentation

type Hapistrano a = ExceptT Failure (ReaderT Config IO) a #

Hapistrano monad.

data Failure #

Failure with status code and a message.

Constructors

Failure Int (Maybe String) 

data Config #

Hapistrano configuration options.

Constructors

Config 

Fields

data Task #

The records describes deployment task.

Constructors

Task 

Fields

Instances

Eq Task # 

Methods

(==) :: Task -> Task -> Bool #

(/=) :: Task -> Task -> Bool #

Ord Task # 

Methods

compare :: Task -> Task -> Ordering #

(<) :: Task -> Task -> Bool #

(<=) :: Task -> Task -> Bool #

(>) :: Task -> Task -> Bool #

(>=) :: Task -> Task -> Bool #

max :: Task -> Task -> Task #

min :: Task -> Task -> Task #

Show Task # 

Methods

showsPrec :: Int -> Task -> ShowS #

show :: Task -> String #

showList :: [Task] -> ShowS #

data ReleaseFormat #

Release format mode.

Constructors

ReleaseShort

Standard release path following Capistrano's format

ReleaseLong

Long release path including picoseconds

data Release #

Release indentifier.

mkRelease :: ReleaseFormat -> UTCTime -> Release #

Create a Release indentifier.

releaseTime :: Release -> UTCTime #

Extract deployment time from Release.

renderRelease :: Release -> String #

Render Release indentifier as a String.

parseRelease :: String -> Maybe Release #

Parse Release identifier from a String.