Sha256: 69f3633ad77d250ad3fdecfa360eebb4d8c1dee1f853b6215c0bf73cbaa8cad4

Contents?: true

Size: 475 Bytes

Versions: 6

Compression:

Stored size: 475 Bytes

Contents

class S3Secure::Encryption
  class Show < Base
    def run
      @s3 = s3_regional_client(@bucket)

      list = S3Secure::Encryption::List.new(@options)
      list.set_s3(@s3)

      rules = list.get_encryption_rules(@bucket)
      if rules
        puts "Bucket #{@bucket} is configured with these encryption rules:"
        puts rules.map(&:to_h)
      else
        puts "Bucket #{@bucket} is not configured with encryption at the bucket level"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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