This file contains 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
{ | |
"@context": "https://ocfl.org/v1.0/", | |
"id": "urn:ark:12148/btv1b84490444", | |
"type": "Object", | |
"head": "#v3", | |
// This is a list of all files that are in the object. It must be updated | |
// with files added in new versions. | |
// Writing the same file to a new location (same checksum, different path) | |
// is an error, since versions are fixed and cannot be changed. Instead, | |
// if a file is restored in later versions, it can be referenced in its earlier |
This file contains 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
#!/usr/bin/env ruby | |
# usage is ruby bulkCloseScript.rb env druid-list.txt | |
# where env is the environment in which you want to run the script (production, test, development) | |
# and druid-list.txt is the list of druids you want to bulk close. | |
unless(ARGV.first.nil?) | |
ENV['ROBOT_ENVIRONMENT'] = ARGV.first | |
end | |
require File.expand_path(File.dirname(__FILE__) + '/../config/boot') |
This file contains 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
druids = ["druid:bt238kw3938", "druid:bw690ww9101", "druid:cc502yd9847", "druid:ch100bz7050"] | |
druids.each do |druid| | |
begin | |
@object=Dor::Item.find(druid) | |
# for some reason this doesn't seem to work. no idea why... | |
#Dor::WorkflowService.close_version 'dor', @object.pid, {:description=>'apply apo defaults', :significance=>:minor} | |
# so instead I'll do the following | |
@object.versionMetadata.update_current_version({:description=>'apply apo defaults', :significance=>:minor}) | |
@object.save | |
Dor::WorkflowService.close_version 'dor', @object.pid |
This file contains 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
druids = ["druid:bt238kw3938", "druid:bw690ww9101", "druid:cc502yd9847", "druid:ch100bz7050"] | |
druids.each do |druid| | |
begin | |
@object=Dor::Item.find(druid) | |
Dor::WorkflowService.update_workflow_status 'dor', @object.pid, 'accessionWF', 'provenance-metadata', 'waiting' | |
end | |
end |
This file contains 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/bash | |
# | |
# start up script for moodle | |
# | |
############################### | |
# Define the Variables | |
############################### | |
CURRENT_URL="example.com/moodle" | |
NEW_URL=`wget -q -O - http://169.254.169.254/latest/meta-data/public-hostname` |
This file contains 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/bash | |
# | |
############################### | |
# get the hostname from ec2 # | |
############################### | |
HOST=`ec2-get-info --public-hostname | cut -d":" -f2` | |
# | |
############################### | |
# echo the hostname out # | |
############################### |