Class: AWS::S3::S3Object

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/with-stacco-patches.rb

Instance Method Summary collapse

Instance Method Details

#local_pathObject



12
13
14
15
16
17
18
# 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