Skip to content

Instantly share code, notes, and snippets.

@Aupajo
Created October 19, 2017 01:43
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 Aupajo/cd4fb76c53b68a72f5c517fa9c6eb318 to your computer and use it in GitHub Desktop.
Save Aupajo/cd4fb76c53b68a72f5c517fa9c6eb318 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "heroku_env_audit"
require "json"
pipelines = JSON.parse(`heroku pipelines --json`, symbolize_names: true)
pipelines.each do |pipeline|
info = JSON.parse(`heroku pipelines:info #{pipeline[:name]} --json`, symbolize_names: true)
info[:apps].each do |app|
puts app[:name]
puts "========"
system "heroku config -a #{app[:name]}"
puts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment