Class: S3Secure::CLI::Summary

Inherits:
Base
  • Object
show all
Defined in:
lib/s3_secure/cli/summary.rb

Instance Method Summary collapse

Methods inherited from Base

#buckets, #initialize

Methods included from Say

#say

Methods included from AwsServices

#sts

Methods included from AwsServices::S3

#check_bucket!, #new_s3_regional_client, #region, #region_map, #s3, #s3_client, #s3_regional_client

Constructor Details

This class inherits a constructor from S3Secure::CLI::Base

Instance Method Details

#runObject



3
4
5
6
7
8
9
10
11
# File 'lib/s3_secure/cli/summary.rb', line 3

def run
  $stderr.puts("Determining bucket security-related settings. Can take a while for lots of buckets...")
  data = [%w[Bucket SSL? Encrypted?]]
  items = S3Secure::Summary::Items.new(@options, buckets)
  items.filtered_items.each do |i|
    data << [i.bucket, i.ssl, i.encrypted]
  end
  S3Secure::Table.new(@options, data).display
end