Sha256: fc1df3e2de9753befc0fd9dd7e8c3b23cbe6d44e040d368761af028f0385a38c
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
module S3Secure::Policy class List < Base def run presenter = CliFormat::Presenter.new(@options) presenter.header = ["Bucket", "Has Policy?"] buckets.each do |bucket| $stderr.puts "Getting policy for bucket #{bucket.color(:green)}" show = Show.new(bucket: bucket) policy = show.policy row = [bucket, !!policy] if @options[:policy].nil? presenter.rows << row # always show policy elsif @options[:policy] presenter.rows << row if policy # only show if bucket has a policy else presenter.rows << row unless policy # only show if bucket doesnt have a policy end end presenter.show end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.7.0 | lib/s3_secure/policy/list.rb |
s3-secure-0.6.1 | lib/s3_secure/policy/list.rb |
s3-secure-0.6.0 | lib/s3_secure/policy/list.rb |