Sha256: 8e7600166aaf7a22bd830c7414d688b5b14232e1270c15eb472c48a2e359981d

Contents?: true

Size: 439 Bytes

Versions: 8

Compression:

Stored size: 439 Bytes

Contents

module Appsignal
  class AuthCheck
    delegate :uri, :to => :transmitter
    attr_reader :config
    attr_accessor :transmitter
    ACTION = 'auth'

    def initialize(environment)
      @config = Appsignal::Config.new(Rails.root, environment).load
    end

    def perform
      self.transmitter = Appsignal::Transmitter.new(
        @config[:endpoint], ACTION, @config[:api_key]
      )
      transmitter.transmit({})
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
appsignal-0.5.1 lib/appsignal/auth_check.rb
appsignal-0.5.0 lib/appsignal/auth_check.rb
appsignal-0.4.7 lib/appsignal/auth_check.rb
appsignal-0.4.6 lib/appsignal/auth_check.rb
appsignal-0.4.5 lib/appsignal/auth_check.rb
appsignal-0.4.4 lib/appsignal/auth_check.rb
appsignal-0.4.3 lib/appsignal/auth_check.rb
appsignal-0.4.0 lib/appsignal/auth_check.rb