0.02
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
Contains classes to register objects and initialize workflows
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 8.7.0, < 9
~> 1.0, >= 1.2.0
>= 1.8.1
~> 1.6
~> 3.0
~> 1.1, >= 1.1.7
>= 1.7, < 3
>= 1.0.3, < 3
~> 2.1
~> 3.0
 Project Readme

Build Status Coverage Status Gem Version

dor-services

Require the following:

require 'dor-services'

Configuration is handled through the Dor::Config object:

Dor::Config.configure do
  # Basic DOR configuration
  fedora.url  = 'https://dor-dev.stanford.edu/fedora'
  solr.url = 'http://dor-dev.stanford.edu/solr'

  # If using SSL certificates
  ssl do
    cert_file = File.dirname(__FILE__) + '/../certs/dummy.crt'
    key_file  = File.dirname(__FILE__) + '/../certs/dummy.key'
    key_pass  = 'dummy'
  end

  # If using SURI service
  suri do
    mint_ids = true
    url      = 'http://some.suri.host:8080'
    id_namespace = 'druid'
    user     = 'suriuser'
    password = 'suripword'
  end
end

Values can also be configured individually:

Dor::Config.suri.mint_ids(true)

Console

You can start a pry session with the dor-services gem loaded by executing the script at:

./script/console

It will need the following in order to execute:

./config/dev_console_env.rb
./config/certs/robots-dor-dev.crt
./config/certs/robots-dor-dev.key

To copy them from a known source:

scp sul-lyberservices-dev.stanford.edu:common-accessioning.old/common-accessioning/shared/config/certs/robots-dor-dev.* config/certs/
scp sul-lyberservices-dev.stanford.edu:common-accessioning.old/common-accessioning/shared/config/environments/development.rb config/dev_console_env.rb

Console is located in the ./script subdirectory so that it does not get installed by clients of the gem.

Copyright

Copyright (c) 2014 Stanford University Library. See LICENSE for details.