lib/umwelt/project/file/store.rb in umwelt-0.1.1 vs lib/umwelt/project/file/store.rb in umwelt-0.2
- old
+ new
@@ -1,12 +1,12 @@
# frozen_string_literal: true
module Umwelt::Project::File
class Store < Umwelt::Abstract::File::Store
def call(struct)
- full_path.dirname.mkpath
+ count = write(full_path, struct)
- full_path.write serialize destruct struct
+ @written_paths[full_path] = count
end
def full_path
umwelt_root_path / 'project.json'
end