Sha256: 1b0ac46ed816b73f7f365c51ae1dce8f8ca96463fe5cf590f7957a0c40610071

Contents?: true

Size: 851 Bytes

Versions: 6

Compression:

Stored size: 851 Bytes

Contents

require 'redis'
require 'rollbar'
require "active_support"
require "active_support/core_ext/integer/time"
require "active_support/core_ext/time/calculations"
require "active_support/isolated_execution_state"
require_relative "portal-connectors/safe_settings_hash"

module PortalConnectors
  class << self
    attr_accessor :redis

    attr_reader :hosts
    attr_reader :secrets
    attr_reader :postbacks
    attr_writer :requester
    attr_accessor :test_mode
    attr_accessor :verbose

    def requester
      return @requester unless @requester.blank?
      raise "config.requester not assigned"
    end

    def configure
      yield self
    end
  end

  @secrets = SafeSettingsHash.new
  @hosts = SafeSettingsHash.new
  @postbacks = SafeSettingsHash.new
end

Dir[File.expand_path("../portal-connectors/*.rb", __FILE__)].each { |f| require f }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
portal-connectors-0.58.39xc lib/portal-connectors.rb
portal-connectors-0.58.39xb lib/portal-connectors.rb
portal-connectors-0.58.39xa lib/portal-connectors.rb
portal-connectors-0.58.39fj lib/portal-connectors.rb
portal-connectors-0.58.39fg lib/portal-connectors.rb
portal-connectors-0.58.38xn lib/portal-connectors.rb