Method: Octopress::Deploy::S3#delete_files
- Defined in:
- lib/octopress-deploy/s3.rb
#delete_files ⇒ Object
Delete files from the bucket, to ensure a 1:1 match with site files
176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/octopress-deploy/s3.rb', line 176 def delete_files if deletable_files.size > 0 puts "Deleting #{pluralize('file', deletable_files.size)}:" if @verbose deletable_files.each do |file| @bucket.objects.delete(file) if @verbose puts "- #{file}" else progress('-') end end end end |