Better log messages.
This commit is contained in:
parent
9e1b48356b
commit
5e3871fcc2
1 changed files with 3 additions and 1 deletions
4
bin/ace
4
bin/ace
|
@ -38,12 +38,14 @@ else
|
|||
end
|
||||
|
||||
rules.rules.each do |klass, files|
|
||||
puts "#{klass} #{files.inspect}"
|
||||
# puts "#{klass} #{files.inspect}"
|
||||
files.each do |file|
|
||||
if File.binread(file).match(/^-{3,5}\s*$/)
|
||||
puts "~ Read #{file} with parse"
|
||||
raw_item = Ace::RawItem.new(file).tap(&:parse)
|
||||
item = klass.create(raw_item.metadata, raw_item.content)
|
||||
else
|
||||
puts "~ Read #{file} without parse"
|
||||
item = klass.create(Hash.new, File.read(file))
|
||||
end
|
||||
item.original_path = file
|
||||
|
|
Loading…
Reference in a new issue