Sha256: 12f2da52568307fb4bfea4c702f223482947ceb45af8942061703477f015b790

Contents?: true

Size: 858 Bytes

Versions: 5

Compression:

Stored size: 858 Bytes

Contents

module S3Secure
  class Encryption < Command
    desc "list", "List bucket encryptions"
    long_desc Help.text("encryption/list")
    def list
      List.new(options).run
    end

    desc "show BUCKET", "show bucket encryption"
    long_desc Help.text("encryption/show")
    def show(bucket)
      Show.new(options.merge(bucket: bucket)).run
    end

    desc "enable BUCKET", "enable bucket encryption"
    long_desc Help.text("encryption/enable")
    option :kms_key, desc: "KMS Key Id. If this is set will use sse_algorithm=aws:kms Otherwise will use sse_algorithm=AES256"
    def enable(bucket)
      Enable.new(options.merge(bucket: bucket)).run
    end

    desc "disable BUCKET", "disable bucket encryption"
    long_desc Help.text("encryption/disable")
    def disable(bucket)
      Disable.new(options.merge(bucket: bucket)).run
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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