Module: Dor::Assembleable

Included in:
BasicItem
Defined in:
lib/dor/models/assembleable.rb

Instance Method Summary collapse

Instance Method Details

#initialize_workspace(source = nil) ⇒ Object


4
5
6
7
8
9
10
11
12
# File 'lib/dor/models/assembleable.rb', line 4

def initialize_workspace(source=nil)
  if(source.nil?)
    druid = DruidTools::Druid.new(self.pid,Config.stacks.local_workspace_root)
    druid.mkdir
  else
    druid = DruidTools::Druid.new(self.pid, Config.stacks.local_workspace_root)
    druid.mkdir_with_final_link(source)
  end
end