Permalink
Browse files

Remove image

  • Loading branch information...
willcodeforfoo committed Nov 16, 2010
1 parent 8f5ec09 commit 70cd82e0743a29aa9b19536d7b7ff86015831d7a
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/imagemagick.rb
View
@@ -9,6 +9,8 @@ def download_and_watermark(from_key, to_key)
if result
if $s3.put('assets.vintageaerial.com', to_key, File.open(output_path), {"x-amz-acl" => "public-read"})
+ system(%Q[rm "#{output_path}"])
+
return to_key
else
return nil

0 comments on commit 70cd82e

Please sign in to comment.