mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-21 21:01:07 -05:00
CloudArchive and CloudModel complete (enough)
- CloudModel is actually classed correctly - Minify JSON prior to uploading - Change archive update interval to 24h (30* ..20MB = 600/1000MB) - Store latest revision url for archive/model after persisting TODO: - Add INITIAL_CORPUS_FILE config var - Look for Cloudinary API call to get filesize w/o DLing - Logic for jsonify(INTIIAL_CORPUS_FILE) v. using persisted archive - Add fetch/persist/etc methods to Ebooks::Archive/Model for fallback - Test it? Or just share it and pray.
This commit is contained in:
2
bots.rb
2
bots.rb
@@ -70,7 +70,7 @@ class BoodooBot
|
||||
if can_run?
|
||||
log "This can run!"
|
||||
@archive = CloudArchive.new(original, archive_path, twitter)
|
||||
@model = CloudModel.consume(@archive_path)
|
||||
@model = CloudModel.new(@original, @model_path).from_json(@archive_path, true)
|
||||
else
|
||||
missing_fields.each {|missing|
|
||||
log "Can't run without #{missing}"
|
||||
|
||||
Reference in New Issue
Block a user