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