Skip to content

Instantly share code, notes, and snippets.

@Epictetus
Forked from youpy/export_heroku_config.rb
Created February 9, 2012 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Epictetus/1778607 to your computer and use it in GitHub Desktop.
Save Epictetus/1778607 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# usage
# $ $(export_heroku_config.rb | grep OAUTH)
config = `heroku config`
config.split(/[\r\n]/).each do |line|
key, value = line.chomp.split(/\s+=>\s+/)
puts "export #{key}=#{value}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment