public
Created — forked from youpy/export_heroku_config.rb

  • Download Gist
export_heroku_config.rb
Ruby
1 2 3 4 5 6 7 8 9
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.