Sha256: 210cb409d2fb005534f4cc8af18d1fcecac34719bcde9152748fc77accf3c083

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

module StatusCat
  module Checkers
    class Slack < Base

      def initialize
        return if gem_missing?('slack-ruby-client', defined?(::Slack))

        @value = ::Slack.config.token
        @status = fail_on_exception do
          message = ::Slack::Web::Client.new.auth_test
          message.ok? ? nil : message.to_s
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
status_cat-5.2.1 lib/status_cat/checkers/slack.rb
status_cat-5.2.0 lib/status_cat/checkers/slack.rb
status_cat-5.0.2 lib/status_cat/checkers/slack.rb