Skip to content

Instantly share code, notes, and snippets.

@mxlje
Created July 19, 2015 11:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxlje/648d4ce2c0315bd58427 to your computer and use it in GitHub Desktop.
Save mxlje/648d4ce2c0315bd58427 to your computer and use it in GitHub Desktop.
secrets for rake tasks
token: '15224aae4e8d'
secret: 'a4d60658-7c45-4707-94ef-638708acdd4b'
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