Skip to content

Commit

Permalink
Merge pull request #59 from paulrbr-fl/add-dhall-types-addons
Browse files Browse the repository at this point in the history
config(dhall): adding redis and mysql addon types
  • Loading branch information
paulrbr-fl authored Mar 23, 2020
2 parents df3a17d + 871d79c commit 13602ab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dhall/Addon.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
let Addon = < Postgresql : { name : Text, env_prefix : Text } >
let Addon =
< Postgresql : { name : Text, env_prefix : Text }
| Mysql : { name : Text, env_prefix : Text }
| Redis : { name : Text, env_prefix : Text }
>

let postgresql =
Addon.Postgresql { name = "pg", env_prefix = "POSTGRESQL_ADDON" }

in { Type = Addon, postgresql = postgresql }
let mysql = Addon.Mysql { name = "mysql", env_prefix = "MYSQL_ADDON" }

let redis = Addon.Redis { name = "redis", env_prefix = "REDIS" }

in { Type = Addon, postgresql = postgresql, mysql = mysql, redis = redis }

0 comments on commit 13602ab

Please sign in to comment.