Created
February 9, 2012 06:58
-
-
Save youpy/1777977 to your computer and use it in GitHub Desktop.
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
#!/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