Sha256: 786d918a48096294adc5d729c2d5f32f9f6feb53f3f15ca81160b6e8781f782c
Contents?: true
Size: 449 Bytes
Versions: 6
Compression:
Stored size: 449 Bytes
Contents
class S3Secure::Policy class Show < Base def run @s3 = s3_regional_client(@bucket) list = S3Secure::Policy::List.new(@options) list.set_s3(@s3) policy = list.get_policy(@bucket) if policy puts "Bucket #{@bucket} is configured with this policy:" puts policy # puts policy.map(&:to_h) else puts "Bucket #{@bucket} is not configured bucket policy" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems