shakers-0.0.43: Shake helpers.

Safe HaskellNone
LanguageHaskell2010

Development.Shakers

Description

Shake helpers.

Synopsis

Documentation

(<:>) :: (IsString m, Monoid m) => m -> m -> m Source #

Join strings with ":"

(<->) :: (IsString m, Monoid m) => m -> m -> m Source #

Join strings with "-"

(<=>) :: (IsString m, Monoid m) => m -> m -> m Source #

Join strings with "="

timestamp :: Action String Source #

Unix timestamp.

buildFile :: FilePath -> FilePath Source #

Build file path builder.

fakeFile :: FilePath -> FilePath Source #

Fake file path builder.

metaFile :: FilePath -> FilePath Source #

Meta file path builder.

mirrorDir :: Action FilePath Source #

Mirror directory of current parent directory.

parentDir :: Action FilePath Source #

Parent directory.

getVar :: String -> Action String Source #

Wrapper around getting the environment that throws error.

getFlag :: String -> Action Bool Source #

Wrapper round getting the environment that returns a bool if env is present.

cmdArgs :: String -> [String] -> Action String Source #

Typeful command args with return string.

cmdArgs_ :: String -> [String] -> Action () Source #

Typeful command args with no return.

cmdArgsDir :: FilePath -> String -> [String] -> Action String Source #

Run commands in a dir with return string.

cmdArgsDir_ :: FilePath -> String -> [String] -> Action () Source #

Run commands in a dir with no return.

stack :: FilePath -> [String] -> Action String Source #

Stack command without return.

stack_ :: FilePath -> [String] -> Action () Source #

Stack command without return.

stackExec :: FilePath -> String -> [String] -> Action String Source #

Stack exec command.

stackExec_ :: FilePath -> String -> [String] -> Action () Source #

Stack exec command without return.

sed_ :: FilePath -> [String] -> Action () Source #

sed command.

replace :: FilePath -> FilePath -> String -> String -> Action () Source #

replace inline command.

git :: FilePath -> [String] -> Action String Source #

Git command in a directory.

git_ :: FilePath -> [String] -> Action () Source #

Git command in a directory with no return.

schemaApply_ :: FilePath -> [String] -> Action () Source #

Schema apply command.

m4 :: [String] -> Action String Source #

m4 command.

aws :: [String] -> Action String Source #

AWS command.

rsync_ :: [String] -> Action () Source #

Rsync command.

ssh :: String -> [String] -> Action String Source #

SSH command.

ssh_ :: String -> [String] -> Action () Source #

SSH command with no return.

sshDir :: FilePath -> String -> [String] -> Action String Source #

SSH command in a remote directory.

sshDir_ :: FilePath -> String -> [String] -> Action () Source #

SSH command in a remote directory with no return.

rssh :: [String] -> Action String Source #

Remote SSH command.

rssh_ :: [String] -> Action () Source #

Remote SSH command with no return.

rdocker_ :: [String] -> Action () Source #

Run docker command remotely.

docker_ :: [String] -> Action () Source #

Run docker command in mirro dir.

xdocker_ :: [String] -> Action () Source #

Run either local or remote docker based on remote env.

convox_ :: [String] -> Action () Source #

Run convox command in mirro dir.

fake :: FilePath -> [FilePattern] -> String -> ([FilePath] -> Action ()) -> Rules () Source #

Use a fake file to keep track of the last time an file-free action ran.

meta :: FilePath -> Action String -> Rules () Source #

Use a meta file to keep track of vitual content.

preprocess :: FilePattern -> FilePath -> Action [(String, String)] -> Rules () Source #

Preprocess a file with m4.

getHashedVersion :: FilePath -> [FilePattern] -> Action String Source #

Build a hash version from a directory and file pattern.

hsRules :: FilePath -> [FilePattern] -> Rules () Source #

Haskell source rules

stackRules :: FilePath -> [FilePattern] -> Rules () Source #

Stack rules.

cabalRules :: FilePath -> FilePath -> Rules () Source #

Cabal and hackage rules.

dbRules :: FilePath -> Rules () Source #

Database rules

dockerRules :: FilePath -> [FilePattern] -> Rules () Source #

Docker rules.

shakeMain :: Rules () -> IO () Source #

Main entry point.