dor-services 4.11.1 → 4.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/dor-services.rb +2 -1
- data/lib/dor/services/cleanup_reset_service.rb +100 -0
- data/lib/dor/services/cleanup_service.rb +23 -21
- data/lib/dor/services/reset_workspace_service.rb +35 -0
- data/lib/dor/version.rb +1 -1
- metadata +16 -86
- data/config/certs/dlss-dev-test.crt +0 -18
- data/config/certs/dlss-dev-test.key +0 -15
- data/config/certs/robots-dor-dev.crt +0 -29
- data/config/certs/robots-dor-dev.key +0 -27
- data/config/dev_console_env.rb +0 -66
- data/lib/dor/services/archive_workspace_service.rb +0 -19
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NzYyYjMxNmUyY2U3NjAzZmFhYjA0M2VjMDFkZjQ3ZjMzZjUzNmFhMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZmIyNDU5MTQ1ZGU0NTJmMmRmMTY0YTI3NmU5Y2JjOWQ1OWZkMjVjNA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZmFkMGFlMzY0NWRlMjA4NjUzZGZjMjlkODhlYzYzNDg5NmYzZmQyMThhNGM2
|
10
|
+
NmVlNDExYjhmMTViOTUwMzFmOWRkODMzODcxZjQ0NWI1MGU0YjYzYTRmMjk4
|
11
|
+
ODg2YjM1YWQxMzU3MzBlNmVmMDg2MWU1MWNkMGU0YmMzZTRkMDM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDkyMWI5ZDRjN2NhNzA1N2NiM2UxNDdkMTcyY2I2ZGViMzZmN2FiYzcxMGY4
|
14
|
+
ZGMzN2E5YWU0YWEzZTYyZWUwMWJmOWFjNzUxYTM0N2JlNDcxY2I5ZGRkMjQy
|
15
|
+
ZjI2MzE2MDE1MjcyNzc5NzlmNmNlZDc3ODg4NWI1YzE4NGQwMzY=
|
data/lib/dor-services.rb
CHANGED
@@ -139,7 +139,8 @@ module Dor
|
|
139
139
|
autoload :ProvenanceMetadataService, 'dor/services/provenance_metadata_service'
|
140
140
|
autoload :TechnicalMetadataService, 'dor/services/technical_metadata_service'
|
141
141
|
autoload :MergeService, 'dor/services/merge_service'
|
142
|
-
autoload :
|
142
|
+
autoload :ResetWorkspaceService, 'dor/services/reset_workspace_service'
|
143
|
+
autoload :CleanupResetService, 'dor/services/cleanup_reset_service'
|
143
144
|
|
144
145
|
# Versioning Classes
|
145
146
|
module Versioning
|
@@ -0,0 +1,100 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
3
|
+
module Dor
|
4
|
+
|
5
|
+
# Remove all traces of the object's data files from the workspace and export areas
|
6
|
+
class CleanupResetService
|
7
|
+
|
8
|
+
# @param [String] druid The identifier for the object whose reset data is to be removed
|
9
|
+
# @return [void] remove copy of the reset data that was exported to preservation core
|
10
|
+
def self.cleanup_by_reset_druid(druid)
|
11
|
+
last_version = get_druid_last_version(druid)
|
12
|
+
cleanup_reset_workspace_content(druid, last_version, Config.cleanup.local_workspace_root)
|
13
|
+
cleanup_reset_workspace_content(druid, last_version, Config.cleanup.local_assembly_root)
|
14
|
+
cleanup_reset_export(druid, last_version)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.get_druid_last_version(druid)
|
18
|
+
druid_obj = Dor::Item.find(druid)
|
19
|
+
last_version = druid_obj.current_version.to_i
|
20
|
+
|
21
|
+
#if the current version is still open, avoid this versioned directory
|
22
|
+
if Dor::WorkflowService.get_lifecycle('dor', druid, 'accessioned').nil? then
|
23
|
+
last_version = last_version - 1
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
# @param [String] druid The identifier for the object whose reset data is to be removed
|
28
|
+
# @param [String] base The base directory to delete from
|
29
|
+
# @param [Integer] last_version The last version that the data should be removed until version 1
|
30
|
+
# @return [void] remove all the object's reset data files from the workspace area equal to less than the last_version
|
31
|
+
def self.cleanup_reset_workspace_content(druid,last_version, base)
|
32
|
+
base_druid = DruidTools::Druid.new(druid, base)
|
33
|
+
base_druid_tree = base_druid.pathname.to_s
|
34
|
+
#if it is truncated tree /aa/111/aaa/1111/content,
|
35
|
+
#we should follow the regular cleanup technique
|
36
|
+
|
37
|
+
reset_directories = get_reset_dir_list(last_version, base_druid_tree)
|
38
|
+
reset_directories.each do |path|
|
39
|
+
FileUtils.rm_rf(path)
|
40
|
+
end
|
41
|
+
base_druid.prune_ancestors(base_druid.pathname.parent)
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
# @param [String] druid The identifier for the object whose reset data is to be removed
|
46
|
+
# @param [String] base The base directory to delete from
|
47
|
+
# @param [Integer] last_version The last version that the data should be removed until version 1
|
48
|
+
# @return [void] prepares a list of reset directories that should be removed
|
49
|
+
def self.get_reset_dir_list(last_version, base_druid_tree)
|
50
|
+
reset_directories = []
|
51
|
+
for i in 1..last_version
|
52
|
+
reset_path = "#{base_druid_tree}_v#{i}"
|
53
|
+
reset_directories.append(reset_path) if File.exists?(reset_path)
|
54
|
+
end
|
55
|
+
return reset_directories
|
56
|
+
end
|
57
|
+
|
58
|
+
# @param [String] druid The identifier for the object whose reset bags data is to be removed
|
59
|
+
# @return [void] remove copy of the reset data that was exported to preservation core
|
60
|
+
def self.cleanup_reset_export(druid, last_version)
|
61
|
+
id = druid.split(':').last
|
62
|
+
base_bag_directory = File.join(Config.cleanup.local_export_home, id)
|
63
|
+
|
64
|
+
bag_dir_list = get_reset_bag_dir_list(last_version, base_bag_directory)
|
65
|
+
bag_dir_list.each do |bag_dir|
|
66
|
+
Pathname(bag_dir).rmtree
|
67
|
+
end
|
68
|
+
|
69
|
+
bag_tar_list = get_reset_bag_tar_list(last_version, base_bag_directory)
|
70
|
+
bag_tar_list.each do |bag_tar|
|
71
|
+
Pathname(bag_tar).rmtree
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# @param [Integer] last_version The last version that the data should be removed until version 1
|
76
|
+
# @param [String] base_bag_directory The base bag directory including the export home and druid id
|
77
|
+
# @return [void] prepares a list of reset bag directories that should be removed
|
78
|
+
def self.get_reset_bag_dir_list(last_version, base_bag_directory)
|
79
|
+
reset_bags = []
|
80
|
+
for i in 1..last_version do
|
81
|
+
reset_path = "#{base_bag_directory}_v#{i}"
|
82
|
+
reset_bags.append(reset_path) if File.exists?(reset_path)
|
83
|
+
end
|
84
|
+
return reset_bags
|
85
|
+
end
|
86
|
+
|
87
|
+
# @param [String] base_bag_directory The base bag directory including the export home and druid id
|
88
|
+
# @param [Integer] last_version The last version that the data should be removed until version 1
|
89
|
+
# @return [void] prepares a list of reset bag tars that should be removed
|
90
|
+
def self.get_reset_bag_tar_list(last_version, base_bag_directory)
|
91
|
+
reset_bags = []
|
92
|
+
for i in 1..last_version do
|
93
|
+
reset_path = "#{base_bag_directory}_v#{i}.tar"
|
94
|
+
reset_bags.append(reset_path) if File.exists?(reset_path)
|
95
|
+
end
|
96
|
+
return reset_bags
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|
@@ -18,31 +18,13 @@ module Dor
|
|
18
18
|
cleanup_export(druid)
|
19
19
|
end
|
20
20
|
|
21
|
-
# Tries to remove any exsitence of the object in our systems
|
22
|
-
# Does the following:
|
23
|
-
# - Removes item from Dor/Fedora/Solr
|
24
|
-
# - Removes content from dor workspace
|
25
|
-
# - Removes content from assembly workspace
|
26
|
-
# - Removes content from sdr export area
|
27
|
-
# - Removes content from stacks
|
28
|
-
# - Removes content from purl
|
29
|
-
# - Removes active workflows
|
30
|
-
# @param [String] druid id of the object you wish to remove
|
31
|
-
def self.nuke!(druid)
|
32
|
-
cleanup_by_druid druid
|
33
|
-
cleanup_stacks druid
|
34
|
-
cleanup_purl_doc_cache druid
|
35
|
-
remove_active_workflows druid
|
36
|
-
delete_from_dor druid
|
37
|
-
end
|
38
|
-
|
39
21
|
# @param [String] druid The identifier for the object whose data is to be removed
|
40
22
|
# @param [String] base The base directory to delete from
|
41
23
|
# @return [void] remove the object's data files from the workspace area
|
42
24
|
def self.cleanup_workspace_content(druid, base)
|
43
25
|
DruidTools::Druid.new(druid, base).prune!
|
44
26
|
end
|
45
|
-
|
27
|
+
|
46
28
|
# @param [String] druid The identifier for the object whose data is to be removed
|
47
29
|
# @return [void] remove copy of the data that was exported to preservation core
|
48
30
|
def self.cleanup_export(druid)
|
@@ -60,6 +42,24 @@ module Dor
|
|
60
42
|
pathname.rmtree if pathname.exist?
|
61
43
|
end
|
62
44
|
|
45
|
+
# Tries to remove any exsitence of the object in our systems
|
46
|
+
# Does the following:
|
47
|
+
# - Removes item from Dor/Fedora/Solr
|
48
|
+
# - Removes content from dor workspace
|
49
|
+
# - Removes content from assembly workspace
|
50
|
+
# - Removes content from sdr export area
|
51
|
+
# - Removes content from stacks
|
52
|
+
# - Removes content from purl
|
53
|
+
# - Removes active workflows
|
54
|
+
# @param [String] druid id of the object you wish to remove
|
55
|
+
def self.nuke!(druid)
|
56
|
+
cleanup_by_druid druid
|
57
|
+
cleanup_stacks druid
|
58
|
+
cleanup_purl_doc_cache druid
|
59
|
+
remove_active_workflows druid
|
60
|
+
delete_from_dor druid
|
61
|
+
end
|
62
|
+
|
63
63
|
def self.cleanup_stacks(druid)
|
64
64
|
DruidTools::StacksDruid.new(druid, Config.stacks.local_storage_root).prune!
|
65
65
|
end
|
@@ -83,7 +83,9 @@ module Dor
|
|
83
83
|
Dor::SearchService.solr.delete_by_id(pid)
|
84
84
|
Dor::SearchService.solr.commit
|
85
85
|
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
86
89
|
|
87
|
-
end
|
88
90
|
|
89
|
-
|
91
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Dor
|
2
|
+
|
3
|
+
# Rename the druid trees at the end of the accessionWF in order to be cleaned/deleted later.
|
4
|
+
class ResetWorkspaceService
|
5
|
+
|
6
|
+
def self.reset_workspace_druid_tree(druid, version, workspace_root)
|
7
|
+
|
8
|
+
druid_tree_path = DruidTools::Druid.new(druid, workspace_root).pathname.to_s
|
9
|
+
|
10
|
+
raise "The archived directory #{druid_tree_path}_v#{version} already existed." if File.exists?("#{druid_tree_path}_v#{version}")
|
11
|
+
|
12
|
+
if File.exists?(druid_tree_path)
|
13
|
+
FileUtils.mv(druid_tree_path, "#{druid_tree_path}_v#{version}")
|
14
|
+
end #Else is a truncated tree where we shouldn't do anything
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.reset_export_bag(druid, version, export_root)
|
19
|
+
|
20
|
+
id = druid.split(':').last
|
21
|
+
bag_dir = File.join(export_root, id)
|
22
|
+
|
23
|
+
raise "The archived bag #{bag_dir}_v#{version} already existed." if File.exists?("#{bag_dir}_v#{version}")
|
24
|
+
|
25
|
+
if File.exists?(bag_dir)
|
26
|
+
FileUtils.mv(bag_dir, "#{bag_dir}_v#{version}")
|
27
|
+
end
|
28
|
+
|
29
|
+
if File.exists?("#{bag_dir}.tar")
|
30
|
+
FileUtils.mv("#{bag_dir}.tar", "#{bag_dir}_v#{version}.tar")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
data/lib/dor/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
5
|
-
prerelease:
|
4
|
+
version: 4.12.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Klein
|
@@ -13,12 +12,11 @@ authors:
|
|
13
12
|
autorequire:
|
14
13
|
bindir: bin
|
15
14
|
cert_chain: []
|
16
|
-
date: 2014-07-
|
15
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
17
16
|
dependencies:
|
18
17
|
- !ruby/object:Gem::Dependency
|
19
18
|
name: active-fedora
|
20
19
|
requirement: !ruby/object:Gem::Requirement
|
21
|
-
none: false
|
22
20
|
requirements:
|
23
21
|
- - ~>
|
24
22
|
- !ruby/object:Gem::Version
|
@@ -26,7 +24,6 @@ dependencies:
|
|
26
24
|
type: :runtime
|
27
25
|
prerelease: false
|
28
26
|
version_requirements: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
27
|
requirements:
|
31
28
|
- - ~>
|
32
29
|
- !ruby/object:Gem::Version
|
@@ -34,7 +31,6 @@ dependencies:
|
|
34
31
|
- !ruby/object:Gem::Dependency
|
35
32
|
name: activesupport
|
36
33
|
requirement: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
34
|
requirements:
|
39
35
|
- - ~>
|
40
36
|
- !ruby/object:Gem::Version
|
@@ -45,7 +41,6 @@ dependencies:
|
|
45
41
|
type: :runtime
|
46
42
|
prerelease: false
|
47
43
|
version_requirements: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
44
|
requirements:
|
50
45
|
- - ~>
|
51
46
|
- !ruby/object:Gem::Version
|
@@ -56,7 +51,6 @@ dependencies:
|
|
56
51
|
- !ruby/object:Gem::Dependency
|
57
52
|
name: confstruct
|
58
53
|
requirement: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
54
|
requirements:
|
61
55
|
- - ~>
|
62
56
|
- !ruby/object:Gem::Version
|
@@ -64,7 +58,6 @@ dependencies:
|
|
64
58
|
type: :runtime
|
65
59
|
prerelease: false
|
66
60
|
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
61
|
requirements:
|
69
62
|
- - ~>
|
70
63
|
- !ruby/object:Gem::Version
|
@@ -72,7 +65,6 @@ dependencies:
|
|
72
65
|
- !ruby/object:Gem::Dependency
|
73
66
|
name: equivalent-xml
|
74
67
|
requirement: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
68
|
requirements:
|
77
69
|
- - ~>
|
78
70
|
- !ruby/object:Gem::Version
|
@@ -80,7 +72,6 @@ dependencies:
|
|
80
72
|
type: :runtime
|
81
73
|
prerelease: false
|
82
74
|
version_requirements: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
75
|
requirements:
|
85
76
|
- - ~>
|
86
77
|
- !ruby/object:Gem::Version
|
@@ -88,7 +79,6 @@ dependencies:
|
|
88
79
|
- !ruby/object:Gem::Dependency
|
89
80
|
name: json
|
90
81
|
requirement: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
82
|
requirements:
|
93
83
|
- - ~>
|
94
84
|
- !ruby/object:Gem::Version
|
@@ -96,7 +86,6 @@ dependencies:
|
|
96
86
|
type: :runtime
|
97
87
|
prerelease: false
|
98
88
|
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
89
|
requirements:
|
101
90
|
- - ~>
|
102
91
|
- !ruby/object:Gem::Version
|
@@ -104,7 +93,6 @@ dependencies:
|
|
104
93
|
- !ruby/object:Gem::Dependency
|
105
94
|
name: net-sftp
|
106
95
|
requirement: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
96
|
requirements:
|
109
97
|
- - ~>
|
110
98
|
- !ruby/object:Gem::Version
|
@@ -112,7 +100,6 @@ dependencies:
|
|
112
100
|
type: :runtime
|
113
101
|
prerelease: false
|
114
102
|
version_requirements: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
103
|
requirements:
|
117
104
|
- - ~>
|
118
105
|
- !ruby/object:Gem::Version
|
@@ -120,7 +107,6 @@ dependencies:
|
|
120
107
|
- !ruby/object:Gem::Dependency
|
121
108
|
name: net-ssh
|
122
109
|
requirement: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
110
|
requirements:
|
125
111
|
- - ~>
|
126
112
|
- !ruby/object:Gem::Version
|
@@ -128,7 +114,6 @@ dependencies:
|
|
128
114
|
type: :runtime
|
129
115
|
prerelease: false
|
130
116
|
version_requirements: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
117
|
requirements:
|
133
118
|
- - ~>
|
134
119
|
- !ruby/object:Gem::Version
|
@@ -136,7 +121,6 @@ dependencies:
|
|
136
121
|
- !ruby/object:Gem::Dependency
|
137
122
|
name: nokogiri
|
138
123
|
requirement: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
124
|
requirements:
|
141
125
|
- - ~>
|
142
126
|
- !ruby/object:Gem::Version
|
@@ -144,7 +128,6 @@ dependencies:
|
|
144
128
|
type: :runtime
|
145
129
|
prerelease: false
|
146
130
|
version_requirements: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
131
|
requirements:
|
149
132
|
- - ~>
|
150
133
|
- !ruby/object:Gem::Version
|
@@ -152,7 +135,6 @@ dependencies:
|
|
152
135
|
- !ruby/object:Gem::Dependency
|
153
136
|
name: om
|
154
137
|
requirement: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
138
|
requirements:
|
157
139
|
- - ~>
|
158
140
|
- !ruby/object:Gem::Version
|
@@ -160,7 +142,6 @@ dependencies:
|
|
160
142
|
type: :runtime
|
161
143
|
prerelease: false
|
162
144
|
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
145
|
requirements:
|
165
146
|
- - ~>
|
166
147
|
- !ruby/object:Gem::Version
|
@@ -168,7 +149,6 @@ dependencies:
|
|
168
149
|
- !ruby/object:Gem::Dependency
|
169
150
|
name: progressbar
|
170
151
|
requirement: !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
152
|
requirements:
|
173
153
|
- - ~>
|
174
154
|
- !ruby/object:Gem::Version
|
@@ -176,7 +156,6 @@ dependencies:
|
|
176
156
|
type: :runtime
|
177
157
|
prerelease: false
|
178
158
|
version_requirements: !ruby/object:Gem::Requirement
|
179
|
-
none: false
|
180
159
|
requirements:
|
181
160
|
- - ~>
|
182
161
|
- !ruby/object:Gem::Version
|
@@ -184,7 +163,6 @@ dependencies:
|
|
184
163
|
- !ruby/object:Gem::Dependency
|
185
164
|
name: rdf
|
186
165
|
requirement: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
166
|
requirements:
|
189
167
|
- - ~>
|
190
168
|
- !ruby/object:Gem::Version
|
@@ -192,7 +170,6 @@ dependencies:
|
|
192
170
|
type: :runtime
|
193
171
|
prerelease: false
|
194
172
|
version_requirements: !ruby/object:Gem::Requirement
|
195
|
-
none: false
|
196
173
|
requirements:
|
197
174
|
- - ~>
|
198
175
|
- !ruby/object:Gem::Version
|
@@ -200,7 +177,6 @@ dependencies:
|
|
200
177
|
- !ruby/object:Gem::Dependency
|
201
178
|
name: rest-client
|
202
179
|
requirement: !ruby/object:Gem::Requirement
|
203
|
-
none: false
|
204
180
|
requirements:
|
205
181
|
- - ~>
|
206
182
|
- !ruby/object:Gem::Version
|
@@ -208,7 +184,6 @@ dependencies:
|
|
208
184
|
type: :runtime
|
209
185
|
prerelease: false
|
210
186
|
version_requirements: !ruby/object:Gem::Requirement
|
211
|
-
none: false
|
212
187
|
requirements:
|
213
188
|
- - ~>
|
214
189
|
- !ruby/object:Gem::Version
|
@@ -216,7 +191,6 @@ dependencies:
|
|
216
191
|
- !ruby/object:Gem::Dependency
|
217
192
|
name: rsolr-ext
|
218
193
|
requirement: !ruby/object:Gem::Requirement
|
219
|
-
none: false
|
220
194
|
requirements:
|
221
195
|
- - ~>
|
222
196
|
- !ruby/object:Gem::Version
|
@@ -224,7 +198,6 @@ dependencies:
|
|
224
198
|
type: :runtime
|
225
199
|
prerelease: false
|
226
200
|
version_requirements: !ruby/object:Gem::Requirement
|
227
|
-
none: false
|
228
201
|
requirements:
|
229
202
|
- - ~>
|
230
203
|
- !ruby/object:Gem::Version
|
@@ -232,7 +205,6 @@ dependencies:
|
|
232
205
|
- !ruby/object:Gem::Dependency
|
233
206
|
name: ruby-cache
|
234
207
|
requirement: !ruby/object:Gem::Requirement
|
235
|
-
none: false
|
236
208
|
requirements:
|
237
209
|
- - ~>
|
238
210
|
- !ruby/object:Gem::Version
|
@@ -240,7 +212,6 @@ dependencies:
|
|
240
212
|
type: :runtime
|
241
213
|
prerelease: false
|
242
214
|
version_requirements: !ruby/object:Gem::Requirement
|
243
|
-
none: false
|
244
215
|
requirements:
|
245
216
|
- - ~>
|
246
217
|
- !ruby/object:Gem::Version
|
@@ -248,7 +219,6 @@ dependencies:
|
|
248
219
|
- !ruby/object:Gem::Dependency
|
249
220
|
name: ruby-graphviz
|
250
221
|
requirement: !ruby/object:Gem::Requirement
|
251
|
-
none: false
|
252
222
|
requirements:
|
253
223
|
- - ~>
|
254
224
|
- !ruby/object:Gem::Version
|
@@ -256,7 +226,6 @@ dependencies:
|
|
256
226
|
type: :runtime
|
257
227
|
prerelease: false
|
258
228
|
version_requirements: !ruby/object:Gem::Requirement
|
259
|
-
none: false
|
260
229
|
requirements:
|
261
230
|
- - ~>
|
262
231
|
- !ruby/object:Gem::Version
|
@@ -264,7 +233,6 @@ dependencies:
|
|
264
233
|
- !ruby/object:Gem::Dependency
|
265
234
|
name: rubydora
|
266
235
|
requirement: !ruby/object:Gem::Requirement
|
267
|
-
none: false
|
268
236
|
requirements:
|
269
237
|
- - ~>
|
270
238
|
- !ruby/object:Gem::Version
|
@@ -272,7 +240,6 @@ dependencies:
|
|
272
240
|
type: :runtime
|
273
241
|
prerelease: false
|
274
242
|
version_requirements: !ruby/object:Gem::Requirement
|
275
|
-
none: false
|
276
243
|
requirements:
|
277
244
|
- - ~>
|
278
245
|
- !ruby/object:Gem::Version
|
@@ -280,7 +247,6 @@ dependencies:
|
|
280
247
|
- !ruby/object:Gem::Dependency
|
281
248
|
name: solrizer
|
282
249
|
requirement: !ruby/object:Gem::Requirement
|
283
|
-
none: false
|
284
250
|
requirements:
|
285
251
|
- - ~>
|
286
252
|
- !ruby/object:Gem::Version
|
@@ -288,7 +254,6 @@ dependencies:
|
|
288
254
|
type: :runtime
|
289
255
|
prerelease: false
|
290
256
|
version_requirements: !ruby/object:Gem::Requirement
|
291
|
-
none: false
|
292
257
|
requirements:
|
293
258
|
- - ~>
|
294
259
|
- !ruby/object:Gem::Version
|
@@ -296,7 +261,6 @@ dependencies:
|
|
296
261
|
- !ruby/object:Gem::Dependency
|
297
262
|
name: systemu
|
298
263
|
requirement: !ruby/object:Gem::Requirement
|
299
|
-
none: false
|
300
264
|
requirements:
|
301
265
|
- - ~>
|
302
266
|
- !ruby/object:Gem::Version
|
@@ -304,7 +268,6 @@ dependencies:
|
|
304
268
|
type: :runtime
|
305
269
|
prerelease: false
|
306
270
|
version_requirements: !ruby/object:Gem::Requirement
|
307
|
-
none: false
|
308
271
|
requirements:
|
309
272
|
- - ~>
|
310
273
|
- !ruby/object:Gem::Version
|
@@ -312,7 +275,6 @@ dependencies:
|
|
312
275
|
- !ruby/object:Gem::Dependency
|
313
276
|
name: uuidtools
|
314
277
|
requirement: !ruby/object:Gem::Requirement
|
315
|
-
none: false
|
316
278
|
requirements:
|
317
279
|
- - ~>
|
318
280
|
- !ruby/object:Gem::Version
|
@@ -320,7 +282,6 @@ dependencies:
|
|
320
282
|
type: :runtime
|
321
283
|
prerelease: false
|
322
284
|
version_requirements: !ruby/object:Gem::Requirement
|
323
|
-
none: false
|
324
285
|
requirements:
|
325
286
|
- - ~>
|
326
287
|
- !ruby/object:Gem::Version
|
@@ -328,7 +289,6 @@ dependencies:
|
|
328
289
|
- !ruby/object:Gem::Dependency
|
329
290
|
name: validatable
|
330
291
|
requirement: !ruby/object:Gem::Requirement
|
331
|
-
none: false
|
332
292
|
requirements:
|
333
293
|
- - ~>
|
334
294
|
- !ruby/object:Gem::Version
|
@@ -336,7 +296,6 @@ dependencies:
|
|
336
296
|
type: :runtime
|
337
297
|
prerelease: false
|
338
298
|
version_requirements: !ruby/object:Gem::Requirement
|
339
|
-
none: false
|
340
299
|
requirements:
|
341
300
|
- - ~>
|
342
301
|
- !ruby/object:Gem::Version
|
@@ -344,7 +303,6 @@ dependencies:
|
|
344
303
|
- !ruby/object:Gem::Dependency
|
345
304
|
name: dor-workflow-service
|
346
305
|
requirement: !ruby/object:Gem::Requirement
|
347
|
-
none: false
|
348
306
|
requirements:
|
349
307
|
- - ~>
|
350
308
|
- !ruby/object:Gem::Version
|
@@ -355,7 +313,6 @@ dependencies:
|
|
355
313
|
type: :runtime
|
356
314
|
prerelease: false
|
357
315
|
version_requirements: !ruby/object:Gem::Requirement
|
358
|
-
none: false
|
359
316
|
requirements:
|
360
317
|
- - ~>
|
361
318
|
- !ruby/object:Gem::Version
|
@@ -366,23 +323,20 @@ dependencies:
|
|
366
323
|
- !ruby/object:Gem::Dependency
|
367
324
|
name: druid-tools
|
368
325
|
requirement: !ruby/object:Gem::Requirement
|
369
|
-
none: false
|
370
326
|
requirements:
|
371
327
|
- - ~>
|
372
328
|
- !ruby/object:Gem::Version
|
373
|
-
version: 0.3.
|
329
|
+
version: 0.3.1
|
374
330
|
type: :runtime
|
375
331
|
prerelease: false
|
376
332
|
version_requirements: !ruby/object:Gem::Requirement
|
377
|
-
none: false
|
378
333
|
requirements:
|
379
334
|
- - ~>
|
380
335
|
- !ruby/object:Gem::Version
|
381
|
-
version: 0.3.
|
336
|
+
version: 0.3.1
|
382
337
|
- !ruby/object:Gem::Dependency
|
383
338
|
name: lyber-utils
|
384
339
|
requirement: !ruby/object:Gem::Requirement
|
385
|
-
none: false
|
386
340
|
requirements:
|
387
341
|
- - ~>
|
388
342
|
- !ruby/object:Gem::Version
|
@@ -390,7 +344,6 @@ dependencies:
|
|
390
344
|
type: :runtime
|
391
345
|
prerelease: false
|
392
346
|
version_requirements: !ruby/object:Gem::Requirement
|
393
|
-
none: false
|
394
347
|
requirements:
|
395
348
|
- - ~>
|
396
349
|
- !ruby/object:Gem::Version
|
@@ -398,7 +351,6 @@ dependencies:
|
|
398
351
|
- !ruby/object:Gem::Dependency
|
399
352
|
name: moab-versioning
|
400
353
|
requirement: !ruby/object:Gem::Requirement
|
401
|
-
none: false
|
402
354
|
requirements:
|
403
355
|
- - '='
|
404
356
|
- !ruby/object:Gem::Version
|
@@ -406,7 +358,6 @@ dependencies:
|
|
406
358
|
type: :runtime
|
407
359
|
prerelease: false
|
408
360
|
version_requirements: !ruby/object:Gem::Requirement
|
409
|
-
none: false
|
410
361
|
requirements:
|
411
362
|
- - '='
|
412
363
|
- !ruby/object:Gem::Version
|
@@ -414,7 +365,6 @@ dependencies:
|
|
414
365
|
- !ruby/object:Gem::Dependency
|
415
366
|
name: stanford-mods
|
416
367
|
requirement: !ruby/object:Gem::Requirement
|
417
|
-
none: false
|
418
368
|
requirements:
|
419
369
|
- - ~>
|
420
370
|
- !ruby/object:Gem::Version
|
@@ -422,7 +372,6 @@ dependencies:
|
|
422
372
|
type: :runtime
|
423
373
|
prerelease: false
|
424
374
|
version_requirements: !ruby/object:Gem::Requirement
|
425
|
-
none: false
|
426
375
|
requirements:
|
427
376
|
- - ~>
|
428
377
|
- !ruby/object:Gem::Version
|
@@ -430,7 +379,6 @@ dependencies:
|
|
430
379
|
- !ruby/object:Gem::Dependency
|
431
380
|
name: fakeweb
|
432
381
|
requirement: !ruby/object:Gem::Requirement
|
433
|
-
none: false
|
434
382
|
requirements:
|
435
383
|
- - ~>
|
436
384
|
- !ruby/object:Gem::Version
|
@@ -438,7 +386,6 @@ dependencies:
|
|
438
386
|
type: :development
|
439
387
|
prerelease: false
|
440
388
|
version_requirements: !ruby/object:Gem::Requirement
|
441
|
-
none: false
|
442
389
|
requirements:
|
443
390
|
- - ~>
|
444
391
|
- !ruby/object:Gem::Version
|
@@ -446,7 +393,6 @@ dependencies:
|
|
446
393
|
- !ruby/object:Gem::Dependency
|
447
394
|
name: haml
|
448
395
|
requirement: !ruby/object:Gem::Requirement
|
449
|
-
none: false
|
450
396
|
requirements:
|
451
397
|
- - ~>
|
452
398
|
- !ruby/object:Gem::Version
|
@@ -454,7 +400,6 @@ dependencies:
|
|
454
400
|
type: :development
|
455
401
|
prerelease: false
|
456
402
|
version_requirements: !ruby/object:Gem::Requirement
|
457
|
-
none: false
|
458
403
|
requirements:
|
459
404
|
- - ~>
|
460
405
|
- !ruby/object:Gem::Version
|
@@ -462,7 +407,6 @@ dependencies:
|
|
462
407
|
- !ruby/object:Gem::Dependency
|
463
408
|
name: jhove-service
|
464
409
|
requirement: !ruby/object:Gem::Requirement
|
465
|
-
none: false
|
466
410
|
requirements:
|
467
411
|
- - ~>
|
468
412
|
- !ruby/object:Gem::Version
|
@@ -470,7 +414,6 @@ dependencies:
|
|
470
414
|
type: :development
|
471
415
|
prerelease: false
|
472
416
|
version_requirements: !ruby/object:Gem::Requirement
|
473
|
-
none: false
|
474
417
|
requirements:
|
475
418
|
- - ~>
|
476
419
|
- !ruby/object:Gem::Version
|
@@ -478,7 +421,6 @@ dependencies:
|
|
478
421
|
- !ruby/object:Gem::Dependency
|
479
422
|
name: rake
|
480
423
|
requirement: !ruby/object:Gem::Requirement
|
481
|
-
none: false
|
482
424
|
requirements:
|
483
425
|
- - ~>
|
484
426
|
- !ruby/object:Gem::Version
|
@@ -486,7 +428,6 @@ dependencies:
|
|
486
428
|
type: :development
|
487
429
|
prerelease: false
|
488
430
|
version_requirements: !ruby/object:Gem::Requirement
|
489
|
-
none: false
|
490
431
|
requirements:
|
491
432
|
- - ~>
|
492
433
|
- !ruby/object:Gem::Version
|
@@ -494,7 +435,6 @@ dependencies:
|
|
494
435
|
- !ruby/object:Gem::Dependency
|
495
436
|
name: rdoc
|
496
437
|
requirement: !ruby/object:Gem::Requirement
|
497
|
-
none: false
|
498
438
|
requirements:
|
499
439
|
- - ~>
|
500
440
|
- !ruby/object:Gem::Version
|
@@ -502,7 +442,6 @@ dependencies:
|
|
502
442
|
type: :development
|
503
443
|
prerelease: false
|
504
444
|
version_requirements: !ruby/object:Gem::Requirement
|
505
|
-
none: false
|
506
445
|
requirements:
|
507
446
|
- - ~>
|
508
447
|
- !ruby/object:Gem::Version
|
@@ -510,7 +449,6 @@ dependencies:
|
|
510
449
|
- !ruby/object:Gem::Dependency
|
511
450
|
name: rspec
|
512
451
|
requirement: !ruby/object:Gem::Requirement
|
513
|
-
none: false
|
514
452
|
requirements:
|
515
453
|
- - ~>
|
516
454
|
- !ruby/object:Gem::Version
|
@@ -518,7 +456,6 @@ dependencies:
|
|
518
456
|
type: :development
|
519
457
|
prerelease: false
|
520
458
|
version_requirements: !ruby/object:Gem::Requirement
|
521
|
-
none: false
|
522
459
|
requirements:
|
523
460
|
- - ~>
|
524
461
|
- !ruby/object:Gem::Version
|
@@ -526,7 +463,6 @@ dependencies:
|
|
526
463
|
- !ruby/object:Gem::Dependency
|
527
464
|
name: yard
|
528
465
|
requirement: !ruby/object:Gem::Requirement
|
529
|
-
none: false
|
530
466
|
requirements:
|
531
467
|
- - ~>
|
532
468
|
- !ruby/object:Gem::Version
|
@@ -534,7 +470,6 @@ dependencies:
|
|
534
470
|
type: :development
|
535
471
|
prerelease: false
|
536
472
|
version_requirements: !ruby/object:Gem::Requirement
|
537
|
-
none: false
|
538
473
|
requirements:
|
539
474
|
- - ~>
|
540
475
|
- !ruby/object:Gem::Version
|
@@ -548,6 +483,13 @@ executables:
|
|
548
483
|
extensions: []
|
549
484
|
extra_rdoc_files: []
|
550
485
|
files:
|
486
|
+
- bin/dor-indexer
|
487
|
+
- bin/dor-indexerd
|
488
|
+
- config/certs/README
|
489
|
+
- config/config_defaults.yml
|
490
|
+
- config/dev_console_env.rb.example
|
491
|
+
- config/predicate_mappings.yml
|
492
|
+
- lib/dor-services.rb
|
551
493
|
- lib/dor/config.rb
|
552
494
|
- lib/dor/datastreams/administrative_metadata_ds.rb
|
553
495
|
- lib/dor/datastreams/content_metadata_ds.rb
|
@@ -597,7 +539,7 @@ files:
|
|
597
539
|
- lib/dor/models/upgradable.rb
|
598
540
|
- lib/dor/models/versionable.rb
|
599
541
|
- lib/dor/models/workflow_object.rb
|
600
|
-
- lib/dor/services/
|
542
|
+
- lib/dor/services/cleanup_reset_service.rb
|
601
543
|
- lib/dor/services/cleanup_service.rb
|
602
544
|
- lib/dor/services/digital_stacks_service.rb
|
603
545
|
- lib/dor/services/merge_service.rb
|
@@ -605,6 +547,7 @@ files:
|
|
605
547
|
- lib/dor/services/metadata_handlers/mdtoolkit_handler.rb
|
606
548
|
- lib/dor/services/metadata_service.rb
|
607
549
|
- lib/dor/services/registration_service.rb
|
550
|
+
- lib/dor/services/reset_workspace_service.rb
|
608
551
|
- lib/dor/services/sdr_ingest_service.rb
|
609
552
|
- lib/dor/services/search_service.rb
|
610
553
|
- lib/dor/services/suri_service.rb
|
@@ -618,45 +561,32 @@ files:
|
|
618
561
|
- lib/dor/workflow/document.rb
|
619
562
|
- lib/dor/workflow/graph.rb
|
620
563
|
- lib/dor/workflow/process.rb
|
621
|
-
- lib/dor-services.rb
|
622
564
|
- lib/gsearch/demoFoxmlToSolr.xslt
|
623
565
|
- lib/gsearch/schema.xml
|
624
566
|
- lib/tasks/dor.rake
|
625
567
|
- lib/tasks/rdoc.rake
|
626
|
-
- config/certs/dlss-dev-test.crt
|
627
|
-
- config/certs/dlss-dev-test.key
|
628
|
-
- config/certs/README
|
629
|
-
- config/certs/robots-dor-dev.crt
|
630
|
-
- config/certs/robots-dor-dev.key
|
631
|
-
- config/config_defaults.yml
|
632
|
-
- config/dev_console_env.rb
|
633
|
-
- config/dev_console_env.rb.example
|
634
|
-
- config/predicate_mappings.yml
|
635
|
-
- bin/dor-indexer
|
636
|
-
- bin/dor-indexerd
|
637
568
|
homepage:
|
638
569
|
licenses: []
|
570
|
+
metadata: {}
|
639
571
|
post_install_message:
|
640
572
|
rdoc_options: []
|
641
573
|
require_paths:
|
642
574
|
- lib
|
643
575
|
required_ruby_version: !ruby/object:Gem::Requirement
|
644
|
-
none: false
|
645
576
|
requirements:
|
646
577
|
- - ! '>='
|
647
578
|
- !ruby/object:Gem::Version
|
648
579
|
version: '0'
|
649
580
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
650
|
-
none: false
|
651
581
|
requirements:
|
652
582
|
- - ! '>='
|
653
583
|
- !ruby/object:Gem::Version
|
654
584
|
version: 1.3.6
|
655
585
|
requirements: []
|
656
586
|
rubyforge_project:
|
657
|
-
rubygems_version:
|
587
|
+
rubygems_version: 2.2.2
|
658
588
|
signing_key:
|
659
|
-
specification_version:
|
589
|
+
specification_version: 4
|
660
590
|
summary: Ruby implmentation of DOR services used by the SULAIR Digital Library
|
661
591
|
test_files: []
|
662
592
|
has_rdoc:
|
@@ -1,18 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIC3zCCAccCCQC3NmcDpol4lzANBgkqhkiG9w0BAQUFADBtMQswCQYDVQQGEwJV
|
3
|
-
UzETMBEGA1UECBMKQ2FsaWZvcm5pYTERMA8GA1UEBxMIU3RhbmZvcmQxETAPBgNV
|
4
|
-
BAoTCFN0YW5mb3JkMQ0wCwYDVQQLEwRETFNTMRQwEgYDVQQDEwtMeWJlclRlc3RD
|
5
|
-
QTAeFw0xMTAyMjMxNjUzNTlaFw0yMTAyMjAxNjUzNTlaMHoxCzAJBgNVBAYTAlVT
|
6
|
-
MRMwEQYDVQQIEwpDYWxpZm9ybmlhMREwDwYDVQQHEwhTdGFuZm9yZDEcMBoGA1UE
|
7
|
-
ChMTU3RhbmZvcmQgVW5pdmVyc2l0eTENMAsGA1UECxMERExTUzEWMBQGA1UEAxMN
|
8
|
-
ZGxzcy1kZXYtdGVzdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAl70WWl1c
|
9
|
-
eC50SwKDCr+vhNFH9N+YdTzh3rIRVKzJFPKvNqkye0jwq9MApyEtQzdyk3eDInlK
|
10
|
-
dOwKX0XpoLnzm9SgBIY714ojYKZMRPPaIc2k5D7mYgyAUYyWLTJnO93KH3PhMbZY
|
11
|
-
79BrNIMaYu7FGu/SVqQB44j9VnlG36mpmUUCAwEAATANBgkqhkiG9w0BAQUFAAOC
|
12
|
-
AQEAlAn5InW1y7GCH/I4t9FgL3nkaOkaO9EzdU8EGtQpQ3YuNqy7IWfqFUm0r06w
|
13
|
-
C9CkvEeaZe2GhzQ0ppKXFGI/oWOxETQhgr50HUlXp6hb+zvgrgD1daKbeBCseYF3
|
14
|
-
yni37BoPrmQbfA+kmrskRTPpxNnTyQqXCLF2IY+1oAsLC9LyZ3wit/x6oTHwFB6a
|
15
|
-
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qMH19+iDNR4N8vjPh98kDJW1HZUHSAcdyE+dZiFP2ofMfAoGBANCe
|
16
|
-
AJgA9EkdwZsom+I7Ty9LSrTWx6cKmNEbLVn1iSlyJx1kHoWyTMtuZszCWBjiXx70
|
17
|
-
84WpX2B4MuJBq6sSoEiUahNsphks82glOd6i+eoE/I+NtZehOFnkAMyGux+FbMyG
|
18
|
-
q/9ZlQgsbWpFHxS59vX/kvlNun2RpJkaF6QPBuc9AoGBAIGdscCb5cPNsoCGkGf6
|
19
|
-
HB84WG4l+bJkFkyHKaoOT8neSGgOxe/7R4CGAbaI3yhsWGF+GPnTfJaOQLERxUch
|
20
|
-
ukQPil/STNwIZcc4ycHNb6S3A7MJO2f8oBtkXcjnBYI4EUOAjHmwmNb3FV/3Ax6W
|
21
|
-
c5TXoSXnOh2CU8twIWwcufolAoGATqnFf4uckZVu05rUbNIAYcz6NoZmck5EoVSm
|
22
|
-
HS3Asqggp6yA9djtrCfNC5icr4VsaLfku5nKJQ4t4bLxkGhNmBCejwSA/S09+x9O
|
23
|
-
Wu0JX3zR3y+IMczQ+tRGmNiU5qXhCJ4fbQHSeGqIN3Io7h/RR6E/QlJU59RrRG/a
|
24
|
-
SjqAV+ECgYEA2mA5VFK3jECnLde+biEaXidIOuBMcqaP0VG6sBwz2wTGSTBE1WkG
|
25
|
-
6prCD0McWVAgDTm3MMKxeuMaoW5eEi83+G+CywLaTBpc8Hz7qgRhBpKhRirCfHMW
|
26
|
-
EfQV5k32vEGoSI+eG8zcGb9mwDeb/EWXAMGXrx2YuYFu7txtwC2mZXc=
|
27
|
-
-----END RSA PRIVATE KEY-----
|
data/config/dev_console_env.rb
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
# Copied from common-accessioning config/environments
|
2
|
-
|
3
|
-
cert_dir = File.join(File.dirname(__FILE__), ".", "certs")
|
4
|
-
|
5
|
-
Dor::Config.configure do
|
6
|
-
fedora do
|
7
|
-
url 'https://sul-dor-dev.stanford.edu/fedora'
|
8
|
-
end
|
9
|
-
|
10
|
-
ssl do
|
11
|
-
cert_file File.join(cert_dir,"robots-dor-dev.crt")
|
12
|
-
key_file File.join(cert_dir,"robots-dor-dev.key")
|
13
|
-
key_pass ''
|
14
|
-
end
|
15
|
-
|
16
|
-
suri do
|
17
|
-
mint_ids true
|
18
|
-
id_namespace 'druid'
|
19
|
-
url 'https://lyberservices-dev.stanford.edu'
|
20
|
-
user 'labware'
|
21
|
-
pass 'lyberteam'
|
22
|
-
end
|
23
|
-
|
24
|
-
metadata do
|
25
|
-
exist.url 'http://viewer:l3l%40nd@lyberapps-dev.stanford.edu/exist/rest/'
|
26
|
-
catalog.url 'http://lyberservices-prod.stanford.edu/catalog/mods'
|
27
|
-
end
|
28
|
-
|
29
|
-
stacks do
|
30
|
-
document_cache_host 'purl-dev.stanford.edu'
|
31
|
-
document_cache_user 'lyberadmin'
|
32
|
-
local_workspace_root '/dor/workspace'
|
33
|
-
storage_root '/stacks'
|
34
|
-
host 'stacks-dev.stanford.edu'
|
35
|
-
user 'lyberadmin'
|
36
|
-
local_stacks_root '/stacks'
|
37
|
-
local_document_cache_root '/purl/document_cache'
|
38
|
-
end
|
39
|
-
|
40
|
-
gsearch.url 'https://dor-dev.stanford.edu/solr/gsearch'
|
41
|
-
solrizer.url 'https://dor-dev.stanford.edu/solr'
|
42
|
-
workflow.url 'https://lyberservices-dev.stanford.edu/workflow/'
|
43
|
-
dor_services.url 'https://dorAdmin:dorAdmin@sul-lyberservices-dev.stanford.edu/dor/v1'
|
44
|
-
|
45
|
-
cleanup do
|
46
|
-
local_workspace_root '/dor/workspace'
|
47
|
-
local_export_home '/dor/export'
|
48
|
-
end
|
49
|
-
|
50
|
-
sdr do
|
51
|
-
local_workspace_root '/dor/workspace'
|
52
|
-
local_export_home '/dor/export'
|
53
|
-
datastreams do
|
54
|
-
contentMetadata 'required'
|
55
|
-
descMetadata 'required'
|
56
|
-
identityMetadata 'required'
|
57
|
-
provenanceMetadata 'required'
|
58
|
-
relationshipMetadata 'required'
|
59
|
-
rightsMetadata 'optional'
|
60
|
-
sourceMetadata 'optional'
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
accessioning_robot_sleep_time 30
|
65
|
-
|
66
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Dor
|
2
|
-
|
3
|
-
# Rename the druid trees at the end of the accessionWF in order to be cleaned/deleted later.
|
4
|
-
class ArchiveWorkspaceService
|
5
|
-
|
6
|
-
def self.archive_workspace_druid_tree(druid, version, workspace_root)
|
7
|
-
|
8
|
-
druid_tree_path = DruidTools::Druid.new(druid, workspace_root).pathname.to_s
|
9
|
-
|
10
|
-
raise "The archived directory #{druid_tree_path}_v#{version} already existed." if File.exists?("#{druid_tree_path}_v#{version}")
|
11
|
-
|
12
|
-
if File.exists?(druid_tree_path)
|
13
|
-
FileUtils.mv(druid_tree_path, "#{druid_tree_path}_v#{version}")
|
14
|
-
end #Else is a truncated tree where we shouldn't do anything
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|