./lib/aws/with-stacco-patches.rb in stacco-0.1.17 vs ./lib/aws/with-stacco-patches.rb in stacco-0.1.18

- old
+ new

@@ -1,6 +1,24 @@ require 'aws' +class AWS::S3::Bucket + def filename + self.key.split('/').last + end + + attr_accessor :cache_dir +end + +class AWS::S3::Object + 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(0400) + new_path + end +end + class AWS::CloudFormation::StackEvent def operation self.resource_status.split('_', 2).first end