Sha256: 849cfd4399cc1fe86f7f985677a8f2ad5eef968b40f89e1e6f65a192e96907e3
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
class S3Secure::CLI class Policy < S3Secure::Command class_option :quiet, type: :boolean desc "list", "List bucket policies" long_desc Help.text("policy/list") option :format, desc: "Format options: #{CliFormat.formats.join(', ')}" option :policy, type: :boolean, desc: "Filter for policy: all, true, false" def list S3Secure::Policy::List.new(options).run end desc "show BUCKET", "show bucket policy" long_desc Help.text("policy/show") def show(bucket) S3Secure::Policy::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) S3Secure::Policy::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) S3Secure::Policy::Unforce.new(options.merge(bucket: bucket, sid: "ForceSSLOnlyAccess")).run end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.7.0 | lib/s3_secure/cli/policy.rb |
s3-secure-0.6.1 | lib/s3_secure/cli/policy.rb |
s3-secure-0.6.0 | lib/s3_secure/cli/policy.rb |