azubi-0.1.0.1: A simple DevOps tool which will never "reach" enterprice level.

Safe HaskellSafe
LanguageHaskell2010

Azubi

Synopsis

Documentation

azubiMain :: [Command] -> IO () Source #

main class called by the user

type AzubiConfig = [Command] Source #

azubiConfig :: Context a => a -> [a -> [Command]] -> [Command] Source #

wrap up everything

(&) :: Context a => [a -> [Command]] -> (a -> [Command]) -> [a -> [Command]] Source #

add a command

(!) :: Revertable a => [a -> [Command]] -> (a -> [Command]) -> [a -> [Command]] Source #

add the opposite of the command

(&?&) :: Revertable a => [a -> [Command]] -> (a -> [Command]) -> [a -> [Command]] Source #

add a command under condition of being in | a positive context

(!?&) :: Revertable a => [a -> [Command]] -> (a -> [Command]) -> [a -> [Command]] Source #

add the opposite command under condition of being in | a positive context

(&?!) :: Revertable a => [a -> [Command]] -> (a -> [Command]) -> [a -> [Command]] Source #

add a command under condition of being in | a negative context

(!?!) :: Revertable a => [a -> [Command]] -> (a -> [Command]) -> [a -> [Command]] Source #

add the opposite command under condition of being in | a negative context

submodule :: Context a => [a -> [Command]] -> a -> [Command] Source #

create a submodule

requires :: (Context a, Revertable a) => (a -> [Command]) -> (a -> [Command]) -> a -> [Command] Source #

data Gentoo Source #

Constructors

Gentoo 
GentooRevert 

installed :: Installed a => Package -> a -> [Command] Source #

exists :: (Existance a, Revertable b) => a -> b -> [Command] Source #

contains :: Revertable a => File -> [String] -> a -> [Command] Source #

todo : rename consists | contain should mean that a string inside exists like this. (sed magic than happens)

data File Source #

Constructors

File 

Fields

Symlink 

Fields

Directory 

Fields

data Repository Source #

Constructors

Git 

Fields

run :: Context a => String -> Maybe File -> a -> [Command] Source #

run a command which creates Nothing or a File.