Class: S3Secure::CLI::RemediateAll

Inherits:
Base
  • Object
show all
Defined in:
lib/s3_secure/cli/remediate_all.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
# File 'lib/s3_secure/cli/remediate_all.rb', line 3

def run
  o = @options.merge(bucket: @bucket)
  Encryption::Enable.new(o).run
  Policy::Enforce.new(o.merge(sid: "ForceSSLOnlyAccess")).run
  Versioning::Enable.new(o).run
  Lifecycle::Add.new(o).run
  AccessLogs::Enable.new(o).run
end