Class: Umwelt::Project::File::Store

Inherits:
Abstract::File::Store show all
Defined in:
lib/umwelt/project/file/store.rb

Instance Method Summary collapse

Methods inherited from Abstract::File::Store

#initialize

Methods inherited from Abstract::Interactor

#prove

Constructor Details

This class inherits a constructor from Umwelt::Abstract::File::Store

Instance Method Details

#call(struct) ⇒ Object



5
6
7
8
9
# File 'lib/umwelt/project/file/store.rb', line 5

def call(struct)
  count = write(full_path, struct)

  @written_paths[full_path] = count
end

#full_pathObject



11
12
13
# File 'lib/umwelt/project/file/store.rb', line 11

def full_path
  umwelt_root_path / 'project.json'
end