Last active
July 18, 2016 14:47
-
-
Save apaleslimghost/b9daa6bacd10af5d81307184e711a0c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import assertEnv from '@quarterto/assert-env'; | |
import herokuAppJson from '@quarterto/heroku-app-json'; | |
module.exports = function(warn) { | |
const herokuEnv = herokuAppJson().env; | |
assertEnv(Object.keys(herokuEnv).filter(key => herokuEnv[key].required)); | |
const warnEnv = assertEnv.warn(Object.keys(herokuEnv).filter(key => !herokuEnv[key].required)); | |
if(warnEnv && warn) { | |
warn(warnEnv); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment