Sha256: a8a2c23ff6524a82ad87bc19fa80afa580bc4a18af69a22dfc935fc01b5a4fe2

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

module StatusCat
  module Checkers
    class S3 < Base

      def initialize
        if !defined?( ::AWS )
          @status = 'aws-sdk gem not installed'
        else
          @value = AWS.config.access_key_id
          @status = fail_on_exception do
            s3 = AWS::S3.new
            ( s3.buckets.count > 0 ) ? nil : 'no buckets'
          end
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
status_cat-0.1.1 lib/status_cat/checkers/s3.rb
status_cat-0.1.0 lib/status_cat/checkers/s3.rb
status_cat-0.0.9 lib/status_cat/checkers/s3.rb