Module: FcrepoWrapper
- Defined in:
- lib/fcrepo_wrapper.rb,
lib/fcrepo_wrapper/version.rb,
lib/fcrepo_wrapper/instance.rb,
lib/fcrepo_wrapper/rake_task.rb
Defined Under Namespace
Modules: RakeTask
Classes: Instance
Constant Summary
collapse
- VERSION =
'0.2.0'.freeze
Class Method Summary
collapse
Class Method Details
.default_fcrepo_version ⇒ Object
5
6
7
|
# File 'lib/fcrepo_wrapper.rb', line 5
def self.default_fcrepo_version
'4.5.0'
end
|
.default_instance(options = {}) ⇒ Object
20
21
22
|
# File 'lib/fcrepo_wrapper.rb', line 20
def self.default_instance(options = {})
@default_instance ||= FcrepoWrapper::Instance.new default_instance_options.merge(options)
end
|
.default_instance_options ⇒ Object
9
10
11
12
13
14
|
# File 'lib/fcrepo_wrapper.rb', line 9
def self.default_instance_options
@default_instance_options ||= {
port: '8080',
version: FcrepoWrapper.default_fcrepo_version
}
end
|
.default_instance_options=(options) ⇒ Object
16
17
18
|
# File 'lib/fcrepo_wrapper.rb', line 16
def self.default_instance_options=(options)
@default_instance_options = options
end
|
.wrap(options = {}, &block) ⇒ Object
Ensures a fcrepo service is running before executing the block
26
27
28
|
# File 'lib/fcrepo_wrapper.rb', line 26
def self.wrap(options = {}, &block)
default_instance(options).wrap &block
end
|