Module: EntityCache::Controls::Store::External::Write
- Defined in:
- lib/entity_cache/controls/store/external/write.rb
Class Method Summary collapse
Class Method Details
.call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/entity_cache/controls/store/external/write.rb', line 6 def self.call subject = Subject.example text = YAML.dump([ Controls::Entity.example, Controls::Record.persisted_version, Controls::Record.persisted_time ]) path = External.path(subject) File.write(path, text) return subject end |