Created
July 19, 2015 11:16
-
-
Save mxlje/648d4ce2c0315bd58427 to your computer and use it in GitHub Desktop.
secrets for rake tasks
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
token: '15224aae4e8d' | |
secret: 'a4d60658-7c45-4707-94ef-638708acdd4b' |
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
require 'yaml' | |
task :deploy do | |
# add check if file exists etc | |
keys = YAML::load(File.open('keys.yml')) | |
token = keys['token'] | |
secret = keys['secret'] | |
# add check for empty values etc | |
# use token and secret here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment