Create a gist now

Instantly share code, notes, and snippets.

#!/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