mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-27 12:13:41 +03:00
26 lines
696 B
Haskell
26 lines
696 B
Haskell
module Main where
|
|
|
|
import qualified Hapistrano as Hap
|
|
import Control.Monad (void)
|
|
|
|
testConfig :: Hap.Config
|
|
testConfig = Hap.Config { Hap._deployPath = "/tmp/project"
|
|
, Hap._host = "localhost"
|
|
, Hap._repository = "/tmp/testrepo"
|
|
, Hap._revision = "origin/transformer-refactor"
|
|
}
|
|
|
|
main :: IO ()
|
|
main = do
|
|
initState <- Hap.initialState testConfig
|
|
|
|
Hap.runRC errorHandler successHandler initState $
|
|
do
|
|
Hap.pushRelease
|
|
Hap.defaultBuildRelease
|
|
void Hap.activateRelease
|
|
|
|
where
|
|
errorHandler = Hap.defaultErrorHandler
|
|
successHandler = Hap.defaultSuccessHandler
|