Skip to content

Instantly share code, notes, and snippets.

@AdamSaleh
Created July 19, 2013 11:27
Show Gist options
  • Save AdamSaleh/6038484 to your computer and use it in GitHub Desktop.
Save AdamSaleh/6038484 to your computer and use it in GitHub Desktop.
Data driven
I think you can generate the data something like this
(def data-include-exclude
[[true "Exclude Errata: %s" "Exclude Errata: RHBA, RHSA" "Exclude Errata: Enhancement: 2013-07-02 - 2013-07-03"]
[false "Include Errata: %s" "Include Errata: RHBA, RHSA" "Include Errata: Enhancement: 2013-07-02 - 2013-07-03"]])
(def data-dates [["07/02/2013" "07/03/2013"]
["07/02/2014" "07/03/2014"]])
(def data (for [incl-excl data-include-exclude
dates data-dates]
(into incl-excl dates)))
;then just use data instead of the data :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment