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.7.0'.freeze
Class Method Summary
collapse
Class Method Details
.default_fcrepo_port ⇒ Object
13
14
15
|
# File 'lib/fcrepo_wrapper.rb', line 13
def self.default_fcrepo_port
'8080'
end
|
.default_fcrepo_version ⇒ Object
9
10
11
|
# File 'lib/fcrepo_wrapper.rb', line 9
def self.default_fcrepo_version
'4.7.0'
end
|
.default_instance(options = {}) ⇒ Object
17
18
19
|
# File 'lib/fcrepo_wrapper.rb', line 17
def self.default_instance(options = {})
@default_instance ||= FcrepoWrapper::Instance.new options
end
|
.wrap(options = {}, &block) ⇒ Object
Ensures a fcrepo service is running before executing the block
23
24
25
|
# File 'lib/fcrepo_wrapper.rb', line 23
def self.wrap(options = {}, &block)
default_instance(options).wrap &block
end
|