Sha256: 714d496cd31e86daeb0ad3eed49077f8b6a22b233a208eae5e1c947cb4a35bed
Contents?: true
Size: 762 Bytes
Versions: 2
Compression:
Stored size: 762 Bytes
Contents
class S3Secure::Versioning class List < Base def run presenter = CliFormat::Presenter.new(@options) presenter.header = ["Bucket", "Has Versioning?"] buckets.each do |bucket| $stderr.puts "Getting versioning for bucket #{bucket.color(:green)}" show = Show.new(bucket: bucket) row = [bucket, show.enabled?] if @options[:versioning].nil? presenter.rows << row # always show policy elsif @options[:versioning] presenter.rows << row if show.enabled? # only show if bucket has some encryption rules else presenter.rows << row unless show.enabled? # only show if bucket doesnt have any encryption rules end end presenter.show end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.5.1 | lib/s3_secure/versioning/list.rb |
s3-secure-0.5.0 | lib/s3_secure/versioning/list.rb |