Class: S3Secure::CLI::RemediateAll
- Defined in:
- lib/s3_secure/cli/remediate_all.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Say
Methods included from AwsServices
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
#run ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/s3_secure/cli/remediate_all.rb', line 3 def run o = .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 |