Sha256: 7944ebed8ca531ce39c6ed210fc8bfd6fd713aa598c2ccd69aca4422687814d0
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
module S3Secure class Lifecycle < Command class_option :quiet, type: :boolean desc "list", "List bucket lifecycles" long_desc Help.text("lifecycle/list") option :format, desc: "Format options: #{CliFormat.formats.join(', ')}" option :lifecycle, desc: "Filter for lifecycle: all, true, false" def list List.new(options).run end desc "show BUCKET", "show bucket lifecycle" long_desc Help.text("lifecycle/show") def show(bucket) Show.new(options.merge(bucket: bucket)).run end desc "add BUCKET", "add bucket lifecycle" long_desc Help.text("lifecycle/add") option :additive, type: :boolean, desc: "Force adding another lifecycle rule even if one exists. Note, may fail, need a different prefix filter" option :prefix, desc: "Filter prefix. Used with additive mode." def add(bucket) Add.new(options.merge(bucket: bucket)).run end desc "remove BUCKET", "remove bucket lifecycle" long_desc Help.text("lifecycle/remove") def remove(bucket) Remove.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/lifecycle.rb |