Skip to content

Instantly share code, notes, and snippets.

@mrunalp
Created October 26, 2012 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrunalp/3956291 to your computer and use it in GitHub Desktop.
Save mrunalp/3956291 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require '/var/www/openshift/broker/config/environment'
CloudUser.find_all(nil).each { |u|
u.applications.each { |a|
if a.scalable
puts a.name
a.elaborate_descriptor
carts = a.embedded.keys.dup
carts << a.framework
carts.each { |comp|
a.expose_port(comp)
}
a.execute_connections
end
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment