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

Version Path
s3-secure-0.4.2 lib/s3_secure/policy/show.rb
s3-secure-0.4.1 lib/s3_secure/policy/show.rb
s3-secure-0.4.0 lib/s3_secure/policy/show.rb
s3-secure-0.3.0 lib/s3_secure/policy/show.rb
s3-secure-0.2.0 lib/s3_secure/policy/show.rb
s3-secure-0.1.0 lib/s3_secure/policy/show.rb