Last active
July 17, 2018 14:23
-
-
Save esaborit4code/5c1fdafcbe855509c26036fccd75f930 to your computer and use it in GitHub Desktop.
Heroku running apps
This file contains hidden or 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
p `heroku apps -o barkibu`.split("\n").drop(1).map { |app| app.gsub(/\s\(.*\)/, '') }.each_with_object({}) { |app, collector| collector[app] = `heroku ps -a #{app}` }.keep_if { |k,v| !(v =~ /No dynos/) }.keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment