Skip to content

Commit

Permalink
Merge pull request #27 from publiclab/full-status
Browse files Browse the repository at this point in the history
output full status.json
  • Loading branch information
jywarren authored May 4, 2019
2 parents 8c8ef75 + b965289 commit 5c7357d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,26 @@ def save

@directory.files.create(
:key => "#{@export_id}/status.json",
:body => @status,
:body => to_json,
:public => true
)
STDERR.puts "saved"

# should run only if jpg completed:
if @status == "complete"
@directory.files.create(
:key => "#{@export_id}/#{@export_id}.jpg",
:body => File.open(@jpg),
:public => true
)
# elsif @status == "generating jpg" # tiles have been zipped
# # save zip
# elsif @status == "zipping tiles" # tiles have been generated
# # save tms
# elsif @status == "tiling" # images have been composited into single image
# # save geotiff
# elsif @status == "compositing" # individual images have been distorted
# # save individual images? (optional)
end
return true
end
Expand Down

0 comments on commit 5c7357d

Please sign in to comment.