Sha256: 448c2dd766522be3b8dbe90f0e7fa097443948f1841ae3e092322796d74eba17
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
module S3Secure class AccessLogs < Command class_option :quiet, type: :boolean desc "list", "List bucket access_logs setting" long_desc Help.text("access_logs/list") option :format, desc: "Format options: #{CliFormat.formats.join(', ')}" option :access_logs, type: :boolean, desc: "Filter for access_logs: all, true, false" def list List.new(options).run end desc "show BUCKET", "show bucket access_logs" long_desc Help.text("access_logs/show") def show(bucket) Show.new(options.merge(bucket: bucket)).run end desc "enable BUCKET", "enable bucket access_logs" long_desc Help.text("access_logs/enable") option :target_bucket, desc: "Target s3 bucket" def enable(bucket) Enable.new(options.merge(bucket: bucket)).run end desc "disable BUCKET", "disable bucket access_logs" long_desc Help.text("access_logs/disable") def disable(bucket) Disable.new(options.merge(bucket: bucket)).run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.5.1 | lib/s3_secure/access_logs.rb |