Skip to content

Commit

Permalink
Add some scripts to the demonstration
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Apr 1, 2019
1 parent e1c58f2 commit 494f566
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/complex/show-queue-size.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker exec complex_mq_1 rabbitmqctl list_queues
13 changes: 13 additions & 0 deletions demo/complex/update-bgasper-in-grouper.gsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

def add(gs,groupName,subject) {
GroupFinder.findByName(gs, groupName, true).addMember(subject, false)
}

gs = GrouperSession.startRootSession()

def bgasper = SubjectFinder.findById('bgasper', 'user', 'ldap')
add(gs, 'ref:affiliation:alum_excludes', bgasper)
add(gs, 'ref:affiliation:faculty_includes', bgasper)
add(gs, 'app:mailinglist:chess', bgasper)
add(gs, 'app:mailinglist:idm-fans', bgasper)
add(gs, 'test:volunteers', bgasper)
2 changes: 2 additions & 0 deletions demo/complex/update-bgasper-in-grouper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker cp update-bgasper-in-grouper.gsh complex_grouper_daemon_1:/tmp/
docker exec complex_grouper_daemon_1 bash -c "/opt/grouper/grouper.apiBinary/bin/gsh /tmp/update-bgasper-in-grouper.gsh"

0 comments on commit 494f566

Please sign in to comment.