class AWS::S3::S3Object

Public Instance Methods

local_path() click to toggle source
# File lib/aws/with-stacco-patches.rb, line 12
def local_path
  new_path = (self.bucket.cache_dir + self.key)
  new_path.parent.mkpath
  new_path.open('w'){ |f| f.write(self.read) }
  new_path.chmod(0600)
  new_path
end