Sha256: 1579fd5c41e39355a3ddc85ceadf6e4720f7ddb851349996858e0c5377ae43a8
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
class S3Secure::Policy class Show < Base def run if policy say "Bucket #{@bucket} is configured with this policy:" say policy else say "Bucket #{@bucket} is not configured bucket policy" end end def policy resp = s3.get_bucket_policy(bucket: @bucket) data = JSON.load(resp.policy.read) # String JSON.pretty_generate(data) rescue Aws::S3::Errors::NoSuchBucketPolicy end memoize :policy end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.5.1 | lib/s3_secure/policy/show.rb |