propellor-5.13: property-based host configuration management in haskell

Safe Haskell | None
Language | Haskell2010

Propellor.Property.Scheduled

Synopsis

- period :: Property i -> Recurrance -> Property i
- periodParse :: Property i -> String -> Property i
- data Recurrance
  - = Daily
  - | Weekly (Maybe WeekDay)
  - | Monthly (Maybe MonthDay)
  - | Yearly (Maybe YearDay)
  - | Divisible Int Recurrance
- type WeekDay = Int
- type MonthDay = Int
- type YearDay = Int

# Documentation

period :: Property i -> Recurrance -> Property i Source #

Makes a Property only be checked every so often.

This uses the description of the Property to keep track of when it was last run.

periodParse :: Property i -> String -> Property i Source #

Like period, but parse a human-friendly string.

data Recurrance Source #

Constructors

Daily |
Weekly (Maybe WeekDay) |
Monthly (Maybe MonthDay) |
Yearly (Maybe YearDay) |
Divisible Int Recurrance | Days, Weeks, or Months of the year evenly divisible by a number. (Divisible Year is years evenly divisible by a number.)

#### Instances

Instances details

Eq Recurrance Source # |
Instance details Defined in Utility.Scheduled Methods (==) :: Recurrance -> Recurrance -> Bool (/=) :: Recurrance -> Recurrance -> Bool
Ord Recurrance Source # |
Instance details Defined in Utility.Scheduled Methods compare :: Recurrance -> Recurrance -> Ordering (<) :: Recurrance -> Recurrance -> Bool (<=) :: Recurrance -> Recurrance -> Bool (>) :: Recurrance -> Recurrance -> Bool (>=) :: Recurrance -> Recurrance -> Bool max :: Recurrance -> Recurrance -> Recurrance min :: Recurrance -> Recurrance -> Recurrance
Read Recurrance Source # |
Instance details Defined in Utility.Scheduled Methods readsPrec :: Int -> ReadS Recurrance readList :: ReadS [Recurrance] readPrec :: ReadPrec Recurrance readListPrec :: ReadPrec [Recurrance]
Show Recurrance Source # |
Instance details Defined in Utility.Scheduled Methods showsPrec :: Int -> Recurrance -> ShowS show :: Recurrance -> String showList :: [Recurrance] -> ShowS

type WeekDay = Int Source #

type MonthDay = Int Source #

type YearDay = Int Source #