Sha256: 2325c30f31483249cedfc9be10a9ac113ec9c34208fb1ab9ec64db158ad8ecf3

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

module S3Secure::Versioning
  class Disable < Base
    def run
      show = Show.new(@options)
      if show.enabled?
        s3.put_bucket_versioning(
          bucket: @bucket,
          versioning_configuration: {
            # mfa_delete: "Disabled",
            status: "Suspended",
          },
        )
        say "Versioning Suspended on bucket #{@bucket}"
      else
        say "Bucket #{@bucket} is already has versioning already Suspended or not Enabled."
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
s3-secure-0.7.0 lib/s3_secure/versioning/disable.rb
s3-secure-0.6.1 lib/s3_secure/versioning/disable.rb
s3-secure-0.6.0 lib/s3_secure/versioning/disable.rb