Module: FcrepoWrapper
- Defined in:
- lib/fcrepo_wrapper.rb,
lib/fcrepo_wrapper/md5.rb,
lib/fcrepo_wrapper/version.rb,
lib/fcrepo_wrapper/instance.rb,
lib/fcrepo_wrapper/settings.rb,
lib/fcrepo_wrapper/rake_task.rb,
lib/fcrepo_wrapper/downloader.rb,
lib/fcrepo_wrapper/configuration.rb
Defined Under Namespace
Modules: RakeTask
Classes: Configuration, Downloader, Instance, MD5, Settings
Constant Summary
collapse
- VERSION =
'0.3.2'.freeze
Class Method Summary
collapse
Class Method Details
.default_fcrepo_version ⇒ Object
9
10
11
|
# File 'lib/fcrepo_wrapper.rb', line 9
def self.default_fcrepo_version
'4.5.0'
end
|
.default_instance(options = {}) ⇒ Object
24
25
26
|
# File 'lib/fcrepo_wrapper.rb', line 24
def self.default_instance(options = {})
@default_instance ||= FcrepoWrapper::Instance.new default_instance_options.merge(options)
end
|
.default_instance_options ⇒ Object
13
14
15
16
17
18
|
# File 'lib/fcrepo_wrapper.rb', line 13
def self.default_instance_options
@default_instance_options ||= {
port: '8080',
version: FcrepoWrapper.default_fcrepo_version
}
end
|
.default_instance_options=(options) ⇒ Object
20
21
22
|
# File 'lib/fcrepo_wrapper.rb', line 20
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
30
31
32
|
# File 'lib/fcrepo_wrapper.rb', line 30
def self.wrap(options = {}, &block)
default_instance(options).wrap &block
end
|