lib/modules/storage.rb in codebreaker-Bulatkin-0.1.2 vs lib/modules/storage.rb in codebreaker-Bulatkin-0.2.0

- old
+ new

@@ -5,9 +5,10 @@ PATH = 'db' FILE_NAME = 'data.yml' def save(results) FileUtils.mkdir_p(PATH) unless Dir.exist?(PATH) + create_storage unless File.exist?(file_path) data = load_database << results write_data(data) end def load_database