Class: Dor::StaticConfig::StacksConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/dor/static_config/stacks_config.rb

Overview

Represents the configuration for the shared filesystem direcotories

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ StacksConfig

Returns a new instance of StacksConfig.



7
8
9
10
11
# 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

Instance Method Details

#configure(&block) ⇒ Object



13
14
15
# File 'lib/dor/static_config/stacks_config.rb', line 13

def configure(&block)
  instance_eval(&block)
end

#local_stacks_root(new_value = nil) ⇒ Object



17
18
19
20
# 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) ⇒ Object



22
23
24
25
# 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