class Dor::StaticConfig::StacksConfig

Represents the configuration for the shared filesystem direcotories

Public Class Methods

new(hash) click to toggle source
# File lib/dor/static_config/stacks_config.rb, line 7
def initialize(hash)
  @local_stacks_root = hash.fetch(:local_stacks_root)
  @local_workspace_root = hash.fetch(:local_workspace_root)
  @local_document_cache_root = hash.fetch(:local_document_cache_root)
end

Public Instance Methods

configure(&block) click to toggle source
# File lib/dor/static_config/stacks_config.rb, line 13
def configure(&block)
  instance_eval(&block)
end
local_stacks_root(new_value = nil) click to toggle source
# File lib/dor/static_config/stacks_config.rb, line 17
def local_stacks_root(new_value = nil)
  @local_stacks_root = new_value if new_value
  @local_stacks_root
end
local_workspace_root(new_value = nil) click to toggle source
# File lib/dor/static_config/stacks_config.rb, line 22
def local_workspace_root(new_value = nil)
  @local_workspace_root = new_value if new_value
  @local_workspace_root
end