Skip to content

Instantly share code, notes, and snippets.

@timlianov
Created June 8, 2015 22:00
Show Gist options
  • Save timlianov/283bede870dfeeade27a to your computer and use it in GitHub Desktop.
Save timlianov/283bede870dfeeade27a to your computer and use it in GitHub Desktop.
count envs
puts `devops project list --format csv | cut -f2 -d ":"`.split("\n").map { |p_name|
`devops project show #{p_name} --format json | grep identifier`.split("\n")
}.flatten.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment