Last active
January 14, 2021 13:09
-
-
Save revoreva/68d9ae779b309c4bdc963a4ec204041b to your computer and use it in GitHub Desktop.
Generate Plist, values from Environment Variables
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
productionKeysContent = "" + | |
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + | |
"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n" + | |
"<plist version=\"1.0\">\n" + | |
" <dict>\n" + | |
" <key>monitoring_token</key>" + "\n" + | |
" <string>" + ENV['monitoring_token'] + "</string>" + "\n" + | |
" <key>third_party_key</key>" + "\n" + | |
" <string>" + ENV['third_party_key'] + "</string>" + "\n" + | |
" </dict>\n" + | |
"</plist>" | |
File.open("Plist/Keys.plist", "w") {|f| f.write(productionKeysContent) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
generated plist: https://gist.github.com/revoreva/ebd38593416509a006b563d41475d1d6