🧘♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| c = Collection.find('d504rk335') | |
| work_ids = [] | |
| c.member_objects.each do |member| | |
| work_ids << member.id | |
| end | |
| new_edit_users = ["[email protected]", "[email protected]"] | |
| def change_edit_users(work_ids, new_edit_users) | |
| work_ids.each do |pid| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| work_ids = ActiveFedora::SolrService.query('depositor_ssim:[email protected]', fl: "id", rows: 1000) | |
| new_owner_email = '[email protected]' | |
| def change_ownership(work_ids, new_owner_email) | |
| work_ids.each do |hash| | |
| pid = hash['id'] | |
| work = ActiveFedora::Base.find(pid) | |
| work.depositor = new_owner_email | |
| work.edit_users = [new_owner_email] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| TYPES="*.rb *.css *.js *.rake" | |
| git ls-files ${TYPES} | xargs sed -E -i "" "s/[[:space:]]+$//g" |