3 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../app/models')
14 site = Site.find('mmdbowl')
16 for number in 745..1045
18 bowl_class = (number > 650) ? Bowl20110904 : Bowl
19 bowl = bowl_class.new(code)
20 unless File.exist?(bowl.src_path)
21 puts "PASS: src #{code} not found"
28 summary = bowl.summary
30 date = '01/01/01(Mon),00:00:00'
31 origname = bowl.origname
34 arc = site.create_arc(name, summary, size, date, origname, locked)
35 unless File.exist?(bowl.arc_path)
36 puts "PASS: arc #{code} not found"
40 arc.create_entries("/Volumes/uploader/arc/#{site.code}/#{name}") unless locked