Skip to content

Instantly share code, notes, and snippets.

@esaborit4code
Last active July 17, 2018 14:23
Show Gist options
  • Save esaborit4code/5c1fdafcbe855509c26036fccd75f930 to your computer and use it in GitHub Desktop.
Save esaborit4code/5c1fdafcbe855509c26036fccd75f930 to your computer and use it in GitHub Desktop.
Heroku running apps
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