Sha256: aef7905b8637ef4f2b215d9212aa2df190bfe7fb050123db8ec9b7a52718e5df
Contents?: true
Size: 765 Bytes
Versions: 10
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true module Dor class StaticConfig # Represents the configuration for the shared filesystem direcotories class StacksConfig 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 def configure(&block) instance_eval(&block) end def local_stacks_root(new_value = nil) @local_stacks_root = new_value if new_value @local_stacks_root end def local_workspace_root(new_value = nil) @local_workspace_root = new_value if new_value @local_workspace_root end end end end
Version data entries
10 entries across 10 versions & 1 rubygems