Method: Octopress::Deploy::S3#deletable_files
- Defined in:
- lib/octopress-deploy/s3.rb
#deletable_files ⇒ Object
Files from the bucket which are deletable Only deletes files beneath the remote_path if specified
233 234 235 236 237 238 239 240 |
# File 'lib/octopress-deploy/s3.rb', line 233 def deletable_files return [] unless delete_files? unless @deletable @deletable = @bucket.objects.map(&:key) - site_files_dest @deletable.reject!{|f| (f =~ /^#{@remote_path}/).nil? } end @deletable end |