Skip to content

Instantly share code, notes, and snippets.

@smerrill
Created September 22, 2013 15:45
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 smerrill/6661189 to your computer and use it in GitHub Desktop.
Save smerrill/6661189 to your computer and use it in GitHub Desktop.
Script to create an OpenShift user on an OpenShift broker.
$ cd /var/www/openshift/broker
$ rails console
irb(main):> a = OpenShift::MongoAuthService.new()
=> #<OpenShift::MongoAuthService:0x00000004507db0 @salt="changeme">
irb(main):> a.register_user('steven','merrill')
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment