Sha256: 54b5a6ce4eaf7eb1f0c165a1dabd4bbc0b9902ee10ae2572eb36a591880a242f
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 Bytes
Contents
module S3Secure class Policy < Command desc "list", "List bucket policies" long_desc Help.text("policy/list") def list List.new(options).run end desc "show BUCKET", "show bucket policy" long_desc Help.text("policy/show") def show(bucket) Show.new(options.merge(bucket: bucket)).run end desc "enforce_ssl BUCKET", "Add enforce ssl bucket policy" long_desc Help.text("policy/enforce_ssl") def enforce_ssl(bucket) Enforce.new(options.merge(bucket: bucket, sid: "ForceSSLOnlyAccess")).run end desc "unforce_ssl BUCKET", "Remove enforce ssl bucket policy" long_desc Help.text("policy/unforce_ssl") def unforce_ssl(bucket) Unforce.new(options.merge(bucket: bucket, sid: "ForceSSLOnlyAccess")).run end end end
Version data entries
6 entries across 6 versions & 1 rubygems