module AwsExtensions::S3::BucketVersioning
Public Instance Methods
enabled()
click to toggle source
Public: Return whether versioning is currently on. We need this method because AWS returns nil when you've never versioned or the string 'Suspended' if you had in the past, but have turned it off.
Returns whether versioning is currently on
# File lib/aws_extensions/s3/BucketVersioning.rb, line 9 def enabled !(status.nil? or status.downcase == "suspended") end